Merge pull request #1268 from amaitland/fix/schemeregistration

Register Custom Schemes in all sub processes
This commit is contained in:
Alex Maitland
2015-09-16 09:06:41 +10:00
18 changed files with 135 additions and 123 deletions
+7
View File
@@ -16,6 +16,7 @@ namespace CefSharp.Example
public const string DefaultUrl = "custom://cefsharp/home.html";
public const string BindingTestUrl = "custom://cefsharp/BindingTest.html";
public const string PluginsTestUrl = "custom://cefsharp/plugins.html";
public const string PopupTestUrl = "custom://cefsharp/PopupTest.html";
public const string TestResourceUrl = "http://test/resource/load";
public const string RenderProcessCrashedUrl = "http://processcrashed";
public const string TestUnicodeResourceUrl = "http://test/resource/loadUnicode";
@@ -119,6 +120,12 @@ namespace CefSharp.Example
SchemeHandlerFactory = new CefSharpSchemeHandlerFactory()
});
settings.RegisterScheme(new CefCustomScheme
{
SchemeName = CefSharpSchemeHandlerFactory.SchemeNameTest,
SchemeHandlerFactory = new CefSharpSchemeHandlerFactory()
});
settings.RegisterExtension(new CefExtension("cefsharp/example", Resources.extension));
Cef.OnContextInitialized = delegate