admin
2020-06-10 a610f2ab6e543d2cb78c1ef212ac6a74ddc067d9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright © 2014 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 <see cref="IResourceHandler"/> 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);
    }
}