// void (*)(_cef_app_t* self, _cef_scheme_registrar_t* registrar)* private static unsafe void OnRegisterCustomSchemesImpl(cef_app_t *self, cef_scheme_registrar_t *registrar) { var instance = GetInstance((IntPtr)self) as CefApp; if (instance == null || ((ICefAppPrivate)instance).AvoidOnRegisterCustomSchemes()) { return; } instance.OnRegisterCustomSchemes(CefSchemeRegistrar.Wrap(CefSchemeRegistrar.Create, registrar)); }
/// <summary> /// 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. /// </summary> protected internal unsafe virtual void OnRegisterCustomSchemes(CefSchemeRegistrar registrar) { }
/// <summary> /// 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. /// </summary> public unsafe virtual void OnRegisterCustomSchemes(CefSchemeRegistrar registrar) { }