public IResourceHandler Create(IBrowser browser, IFrame frame, string schemeName, IRequest request) { if (schemeName == SchemeName && request.Url.EndsWith("CefSharp.Core.xml", System.StringComparison.OrdinalIgnoreCase)) { //Display the debug.log file in the browser return(ResourceHandler.FromFileName("CefSharp.Core.xml", ".xml")); } return(new CefSharpSchemeHandler()); }
public IResourceHandler Create(IBrowser browser, IFrame frame, string schemeName, IRequest request) { if (schemeName == SchemeName && request.Url.EndsWith("CefSharp.Core.xml", System.StringComparison.OrdinalIgnoreCase)) { //Convenient helper method to lookup the mimeType var mimeType = ResourceHandler.GetMimeType(".xml"); //Display the debug.log file in the browser return(ResourceHandler.FromFileName("CefSharp.Core.xml", mimeType)); } return(new CefSharpSchemeHandler()); }