ResourceRequestHandlerOnResourceLoadComplete Method |
Version 105.3.390
Called on the CEF IO thread when a resource load has completed. This method will be called for all requests, including
requests that are aborted due to CEF shutdown or destruction of the associated browser. In cases where the associated browser
is destroyed this callback may arrive after the
OnBeforeClose(IWebBrowser, IBrowser) callback for that browser. The
IsValid method can be used to test for this situation, and care
should be taken not to call
browser or
frame methods that modify state (like LoadURL,
SendProcessMessage, etc.) if the frame is invalid.
Namespace:
CefSharp.Handler
Assembly:
CefSharp (in CefSharp.dll) Version: 105.3.390.0 (105.3.390.0)
Syntax protected virtual void OnResourceLoadComplete(
IWebBrowser chromiumWebBrowser,
IBrowser browser,
IFrame frame,
IRequest request,
IResponse response,
UrlRequestStatus status,
long receivedContentLength
)
protected:
virtual void OnResourceLoadComplete(
IWebBrowser^ chromiumWebBrowser,
IBrowser^ browser,
IFrame^ frame,
IRequest^ request,
IResponse^ response,
UrlRequestStatus status,
long long receivedContentLength
)
Parameters
- chromiumWebBrowser
- Type: CefSharpIWebBrowser
The ChromiumWebBrowser 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. - response
- Type: CefSharpIResponse
the response object - cannot be modified in this callback. - status
- Type: CefSharpUrlRequestStatus
indicates the load completion status. - receivedContentLength
- Type: SystemInt64
is the number of response bytes actually read.
See Also