HumanRender/human_render/CEF/HumanApp.h

33 lines
741 B
C
Raw Normal View History

2024-12-19 17:46:41 +00:00
#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);
};