Пример #1
0
        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();
        }
 protected override void OnRegisterCustomSchemes(CefSchemeRegistrar registrar)
 {
     registrar.AddCustomScheme("http", true, true, false);
     registrar.AddCustomScheme("local", true, true, false);
 }
Пример #3
0
 /// <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)
 {
 }
Пример #4
0
 /// <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)
 {
 }