cef_app_t

Type Alias cef_app_t 

Source
pub type cef_app_t = _cef_app_t;
Expand description

Implement this structure to provide handler implementations. Methods will be called by the process and/or thread indicated.

Aliased Type§

#[repr(C)]
pub struct cef_app_t { pub base: _cef_base_ref_counted_t, pub on_before_command_line_processing: Option<unsafe extern "C" fn(*mut _cef_app_t, *const _cef_string_utf16_t, *mut _cef_command_line_t)>, pub on_register_custom_schemes: Option<unsafe extern "C" fn(*mut _cef_app_t, *mut _cef_scheme_registrar_t)>, pub get_resource_bundle_handler: Option<unsafe extern "C" fn(*mut _cef_app_t) -> *mut _cef_resource_bundle_handler_t>, pub get_browser_process_handler: Option<unsafe extern "C" fn(*mut _cef_app_t) -> *mut _cef_browser_process_handler_t>, pub get_render_process_handler: Option<unsafe extern "C" fn(*mut _cef_app_t) -> *mut _cef_render_process_handler_t>, }

Fields§

§base: _cef_base_ref_counted_t

Base structure.

§on_before_command_line_processing: Option<unsafe extern "C" fn(*mut _cef_app_t, *const _cef_string_utf16_t, *mut _cef_command_line_t)>

Provides an opportunity to view and/or modify command-line arguments before processing by CEF and Chromium. The |process_type| value will be NULL for the browser process. Do not keep a reference to the cef_command_line_t object passed to this function. The cef_settings_t.command_line_args_disabled value can be used to start with an NULL command-line object. Any values specified in CefSettings that equate to command-line arguments will be set before this function is called. Be cautious when using this function to modify command-line arguments for non-browser processes as this may result in undefined behavior including crashes.

§on_register_custom_schemes: Option<unsafe extern "C" fn(*mut _cef_app_t, *mut _cef_scheme_registrar_t)>

Provides an opportunity to register custom schemes. Do not keep a reference to the |registrar| object. This function is called on the main thread for each process and the registered schemes should be the same across all processes.

§get_resource_bundle_handler: Option<unsafe extern "C" fn(*mut _cef_app_t) -> *mut _cef_resource_bundle_handler_t>

Return the handler for resource bundle events. If cef_settings_t.pack_loading_disabled is true (1) a handler must be returned. If no handler is returned resources will be loaded from pack files. This function is called by the browser and render processes on multiple threads.

§get_browser_process_handler: Option<unsafe extern "C" fn(*mut _cef_app_t) -> *mut _cef_browser_process_handler_t>

Return the handler for functionality specific to the browser process. This function is called on multiple threads in the browser process.

§get_render_process_handler: Option<unsafe extern "C" fn(*mut _cef_app_t) -> *mut _cef_render_process_handler_t>

Return the handler for functionality specific to the render process. This function is called on the render process main thread.