mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 11:42:36 +00:00
c445a508ea
Updated ISchemeHandlerFactory xml doc As both current use cases for ResourceHandlerWrapper can potentially return null rather than handle the resource change CefRequestWrapper to be disposed of automatically and use the CefRequest provided by ResourceHandlerWrapper::ProcessRequest
32 lines
1.5 KiB
C#
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 ISchemeHandler 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 ISchemeHandler 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>
|
|
ISchemeHandler Create(IBrowser browser, IFrame frame, string schemeName, IRequest request);
|
|
}
|
|
}
|