Files
cefsharp/CefSharp/ISchemeHandlerFactory.cs
T
amaitland abb06171b6 Add basic example of reading the Debug.log file from disk and add option to use ResourceHandler in a SchemeHandlerFactory
(Means that ISchemeHandler had to be removed - which is an unfortunate breaking change, better to be done now though)
2015-07-29 20:55:28 +10:00

32 lines
1.5 KiB
C#

// Copyright © 2010-2015 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
namespace CefSharp
{
/// <summary>
/// Class that creates <see cref="IResourceHandler"/> instances for handling scheme requests.
/// The methods of this class will always be called on the CEF IO thread.
/// </summary>
public interface ISchemeHandlerFactory
{
/// <summary>
/// Return a new <see cref="IResourceHandler"/> instance to handle the request or an empty
/// reference to allow default handling of the request.
/// </summary>
/// <param name="browser">the browser window that originated the
/// request or null if the request did not originate from a browser window
/// (for example, if the request came from CefURLRequest).</param>
/// <param name="frame">frame that originated the request
/// or null if the request did not originate from a browser window
/// (for example, if the request came from CefURLRequest).</param>
/// <param name="schemeName">the scheme name</param>
/// <param name="request">The request. (will not contain cookie data)</param>
/// <returns>
/// Return a new ISchemeHandler instance to handle the request or an empty
/// reference to allow default handling of the request
/// </returns>
IResourceHandler Create(IBrowser browser, IFrame frame, string schemeName, IRequest request);
}
}