IResourceRequestHandlerOnBeforeResourceLoad Method |
Version 130.1.90
Called on the CEF IO thread before a resource request is loaded.
To redirect or change the resource load optionally modify request.
Modification of the request URL will be treated as a redirect
Namespace: CefSharpAssembly: CefSharp (in CefSharp.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax CefReturnValue OnBeforeResourceLoad(
IWebBrowser chromiumWebBrowser,
IBrowser browser,
IFrame frame,
IRequest request,
IRequestCallback callback
)
CefReturnValue OnBeforeResourceLoad(
IWebBrowser^ chromiumWebBrowser,
IBrowser^ browser,
IFrame^ frame,
IRequest^ request,
IRequestCallback^ callback
)
Parameters
- chromiumWebBrowser IWebBrowser
- The ChromiumWebBrowser control
- browser IBrowser
- the browser object - may be null if originating from ServiceWorker or CefURLRequest
- frame IFrame
- the frame object - may be null if originating from ServiceWorker or CefURLRequest
- request IRequest
- the request object - can be modified in this callback.
- callback IRequestCallback
- Callback interface used for asynchronous continuation of url requests.
Return Value
CefReturnValue
Return
Continue to continue the request immediately.
Return
ContinueAsync and call
Continue(Boolean) or
Cancel at a later time to continue or the cancel the request asynchronously.
Return
Cancel to cancel the request immediately.
See Also