ResourceRequestHandler.OnResourceLoadComplete Method |
Version 96.0.142
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: 96.0.142.0 (96.0.142.0)
Syntaxprotected 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: CefSharp.IWebBrowser
The ChromiumWebBrowser control. - browser
- Type: CefSharp.IBrowser
the browser object - may be null if originating from ServiceWorker or CefURLRequest. - frame
- Type: CefSharp.IFrame
the frame object - may be null if originating from ServiceWorker or CefURLRequest. - request
- Type: CefSharp.IRequest
the request object - cannot be modified in this callback. - response
- Type: CefSharp.IResponse
the response object - cannot be modified in this callback. - status
- Type: CefSharp.UrlRequestStatus
indicates the load completion status. - receivedContentLength
- Type: System.Int64
is the number of response bytes actually read.
See Also