使用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
40
41
42
#include "Cef3ClientApp.h"
#include "include/cef_command_line.h"
 
namespace browser
{
 
namespace {
const char kProcessType[] = "type";
const char kRendererProcess[] = "renderer";
}  // namespace
 
 
CCef3ClientApp::CCef3ClientApp() {
}
 
// static
CCef3ClientApp::ProcessType CCef3ClientApp::GetProcessType(CefRefPtr<CefCommandLine> command_line)
{
  // The command-line flag won't be specified for the browser process.
  if (!command_line->HasSwitch(kProcessType))
    return BrowserProcess;
 
  const std::string& process_type = command_line->GetSwitchValue(kProcessType);
  if (process_type == kRendererProcess)
    return RendererProcess;
 
  return OtherProcess;
}
 
void CCef3ClientApp::OnRegisterCustomSchemes(
    CefRawPtr<CefSchemeRegistrar> registrar) {
  RegisterCustomSchemes(registrar, cookieable_schemes_);
}
 
 
// static
void CCef3ClientApp::RegisterCustomSchemes(CefRawPtr<CefSchemeRegistrar> registrar,std::vector<CefString>& cookiable_schemes)
{
   // scheme_test::RegisterCustomSchemes(registrar, cookiable_schemes);
}
 
}  // namespace browser