33 lines
741 B
C++
33 lines
741 B
C++
#pragma once
|
|
|
|
#include "include/cef_app.h"
|
|
|
|
#include <list>
|
|
|
|
class HumanApp : public CefApp {
|
|
public:
|
|
HumanApp();
|
|
|
|
enum ProcessType {
|
|
BrowserProcess,
|
|
RendererProcess,
|
|
ZygoteProcess,
|
|
OtherProcess,
|
|
};
|
|
|
|
// Determine the process type based on command-line arguments.
|
|
static ProcessType GetProcessType(CefRefPtr<CefCommandLine> command_line);
|
|
|
|
private:
|
|
// Registers custom schemes. Implemented by cefclient in
|
|
// client_app_delegates_common.cc
|
|
static void RegisterCustomSchemes(CefRawPtr<CefSchemeRegistrar> registrar);
|
|
|
|
// CefApp methods.
|
|
void OnRegisterCustomSchemes(
|
|
CefRawPtr<CefSchemeRegistrar> registrar) override;
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(HumanApp);
|
|
};
|
|
|