private void on_register_custom_schemes(cef_app_t *self, cef_scheme_registrar_t *registrar) { CheckSelf(self); var m_registrar = CefSchemeRegistrar.FromNative(registrar); OnRegisterCustomSchemes(m_registrar); m_registrar.Dispose(); }
/// <summary> /// Provides an opportunity to register custom schemes. Do not keep a reference /// to the |registrar| object. This method is called on the main thread for /// each process and the registered schemes should be the same across all /// processes. /// </summary> protected virtual void OnRegisterCustomSchemes(CefSchemeRegistrar registrar) { }