pub type cef_scheme_registrar_t = _cef_scheme_registrar_t;Expand description
Structure that manages custom scheme registrations.
NOTE: This struct is allocated DLL-side.
Aliased Type§
#[repr(C)]pub struct cef_scheme_registrar_t {
pub base: _cef_base_scoped_t,
pub add_custom_scheme: Option<unsafe extern "C" fn(*mut _cef_scheme_registrar_t, *const _cef_string_utf16_t, i32) -> i32>,
}Fields§
§base: _cef_base_scoped_tBase structure.
add_custom_scheme: Option<unsafe extern "C" fn(*mut _cef_scheme_registrar_t, *const _cef_string_utf16_t, i32) -> i32>Register a custom scheme. This function should not be called for the built-in HTTP, HTTPS, FILE, FTP, ABOUT and DATA schemes.
See cef_scheme_options_t for possible values for |options|.
This function may be called on any thread. It should only be called once per unique |scheme_name| value. If |scheme_name| is already registered or if an error occurs this function will return false (0).