#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
|