使用soui开发的mbc,只支持windows版本
w1146869587
2022-01-24 479b1995ef435713c2cf4f0da8de3a6af6c30922
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef _BROWSER_RESOURCE_UTIL_H_
#define _BROWSER_RESOURCE_UTIL_H_
#pragma once
 
#include <string>
#include "include/cef_stream.h"
 
#if defined(OS_WIN)
#include "include/wrapper/cef_resource_manager.h"
#endif
 
namespace browser 
{
 
 
// Returns the contents of the CefRequest as a string.
std::string DumpRequestContents(CefRefPtr<CefRequest> request);
 
std::string GetTimeString(const CefTime& value);
 
std::string GetCertStatusString(cef_cert_status_t status);
 
std::string GetBinaryString(CefRefPtr<CefBinaryValue> value);
 
// Retrieve a resource as a string.
bool LoadBinaryResource(const char* resource_name, std::string& resource_data);
 
// Retrieve a resource as a steam reader.
CefRefPtr<CefStreamReader> GetBinaryResourceReader(const char* resource_name);
 
#if defined(OS_WIN)
// Create a new provider for loading binary resources.
CefResourceManager::Provider* CreateBinaryResourceProvider(
    const std::string& url_path);
#endif
 
}  // namespace browser
 
#endif  // _BROWSER_RESOURCE_UTIL_H_