cef_browser_process_handler_t

Structure used to implement browser process callbacks. The functions of this structure will be called on the browser process main thread unless otherwise indicated.

Members

Variables

base
cef_base_ref_counted_t base;

Base structure.

get_default_client
cef_client_t* function(cef_browser_process_handler_t* self) nothrow get_default_client;

Return the default client for use with a newly created browser window. If null is returned the browser will be unmanaged (no callbacks will be executed for that browser) and application shutdown will be blocked until the browser window is closed manually. This function is currently only used with the chrome runtime.

on_before_child_process_launch
void function(cef_browser_process_handler_t* self, cef_command_line_t* command_line) nothrow on_before_child_process_launch;

Called before a child process is launched. Will be called on the browser process UI thread when launching a render process and on the browser process IO thread when launching a GPU process. Provides an opportunity to modify the child process command line. Do not keep a reference to |command_line| outside of this function.

on_context_initialized
void function(cef_browser_process_handler_t* self) nothrow on_context_initialized;

Called on the browser process UI thread immediately after the CEF context has been initialized.

on_register_custom_preferences
void function(cef_browser_process_handler_t* self, cef_preferences_type_t type, cef_preference_registrar_t* registrar) nothrow on_register_custom_preferences;

cef_settings_t.persist_user_preferences configuration.

on_schedule_message_pump_work
void function(cef_browser_process_handler_t* self, long delay_ms) nothrow on_schedule_message_pump_work;

Called from any thread when work has been scheduled for the browser process main (UI) thread. This callback is used in combination with cef_settings_t.external_message_pump and cef_do_message_loop_work() in cases where the CEF message loop must be integrated into an existing application message loop (see additional comments and warnings on CefDoMessageLoopWork). This callback should schedule a cef_do_message_loop_work() call to happen on the main (UI) thread. |delay_ms| is the requested delay in milliseconds. If |delay_ms| is <= 0 then the call should happen reasonably soon. If |delay_ms| is > 0 then the call should be scheduled to happen after the specified delay and any currently pending scheduled call should be cancelled.

Meta