12345678910111213141516171819 |
- using CefGlue.Tests.Helpers;
- using Xilium.CefGlue;
- using Xilium.CefGlue.Common.Handlers;
- namespace CefGlue.Tests.CustomSchemes
- {
- class CustomSchemeHandlerFactory : CefSchemeHandlerFactory
- {
- public const string SchemeName = "test";
- protected override CefResourceHandler Create(CefBrowser browser, CefFrame frame, string schemeName, CefRequest request)
- {
- return new DefaultResourceHandler()
- {
- Response = StreamHelper.GetStream("test")
- };
- }
- }
- }
|