public static void Register(CefSettings settings, ICustomSchemeHandler handler)
 {
     settings.RegisterScheme(new CefCustomScheme {
         SchemeName           = handler.Protocol,
         IsStandard           = false,
         IsSecure             = true,
         IsCorsEnabled        = true,
         IsCSPBypassing       = true,
         SchemeHandlerFactory = new CefSchemeHandlerFactory(handler)
     });
 }
 public SchemeHandlerFactoryLogic(ICustomSchemeHandler handler, IRequestAdapter <TRequest> requestAdapter, IResourceHandlerFactory <TResourceHandler> resourceHandlerFactory)
 {
     this.handler         = handler;
     this.requestAdapter  = requestAdapter;
     this.resourceVisitor = new SchemeResourceVisitor <TResourceHandler>(resourceHandlerFactory);
 }
 private CefSchemeHandlerFactory(ICustomSchemeHandler handler)
 {
     this.logic = new SchemeHandlerFactoryLogic <IRequest, IResourceHandler>(handler, CefRequestAdapter.Instance, CefResourceHandlerFactory.Instance);
 }