ResourceRequestHandlerGetResourceHandler Method |
Version 105.3.390
Called on the CEF IO thread before a resource is loaded. To specify a handler for the resource return a
IResourceHandler object.
Namespace:
CefSharp.Handler
Assembly:
CefSharp (in CefSharp.dll) Version: 105.3.390.0 (105.3.390.0)
Syntax protected virtual IResourceHandler GetResourceHandler(
IWebBrowser chromiumWebBrowser,
IBrowser browser,
IFrame frame,
IRequest request
)
protected:
virtual IResourceHandler^ GetResourceHandler(
IWebBrowser^ chromiumWebBrowser,
IBrowser^ browser,
IFrame^ frame,
IRequest^ request
)
Parameters
- chromiumWebBrowser
- Type: CefSharpIWebBrowser
The browser UI control. - browser
- Type: CefSharpIBrowser
the browser object - may be null if originating from ServiceWorker or CefURLRequest. - frame
- Type: CefSharpIFrame
the frame object - may be null if originating from ServiceWorker or CefURLRequest. - request
- Type: CefSharpIRequest
the request object - cannot be modified in this callback.
Return Value
Type:
IResourceHandler
To allow the resource to load using the default network loader return null otherwise return an instance of
IResourceHandler with a valid stream.
See Also