public interface CefResourceRequestHandler
| Modifier and Type | Method and Description |
|---|---|
CefCookieAccessFilter |
getCookieAccessFilter(CefBrowser browser,
CefFrame frame,
CefRequest request)
Called on the IO thread before a resource is loaded.
|
CefResourceHandler |
getResourceHandler(CefBrowser browser,
CefFrame frame,
CefRequest request)
Called on the IO thread before a resource is loaded.
|
boolean |
onBeforeResourceLoad(CefBrowser browser,
CefFrame frame,
CefRequest request)
Called on the IO thread before a resource request is loaded.
|
void |
onProtocolExecution(CefBrowser browser,
CefFrame frame,
CefRequest request,
BoolRef allowOsExecution)
Called on the IO thread to handle requests for URLs with an unknown protocol component.
|
void |
onResourceLoadComplete(CefBrowser browser,
CefFrame frame,
CefRequest request,
CefResponse response,
CefURLRequest.Status status,
long receivedContentLength)
Called on the IO thread when a resource load has completed.
|
void |
onResourceRedirect(CefBrowser browser,
CefFrame frame,
CefRequest request,
CefResponse response,
StringRef new_url)
Called on the IO thread when a resource load is redirected.
|
boolean |
onResourceResponse(CefBrowser browser,
CefFrame frame,
CefRequest request,
CefResponse response)
Called on the IO thread when a resource response is received.
|
CefCookieAccessFilter getCookieAccessFilter(CefBrowser browser, CefFrame frame, CefRequest request)
browser - The corresponding browser.frame - The frame generating the event. Instance only valid within the scope of this
method.request - The request itself. Cannot be modified in this callback. Instance only valid
within the scope of this method.CefResourceHandler getResourceHandler(CefBrowser browser, CefFrame frame, CefRequest request)
browser - The corresponding browser.frame - The frame generating the event. Instance only valid within the scope of this
method.request - The request itself. Cannot be modified in this callback. Instance only valid
within the scope of this method.boolean onBeforeResourceLoad(CefBrowser browser, CefFrame frame, CefRequest request)
browser - The corresponding browser.frame - The frame generating the event. Instance only valid within the scope of this
method.request - The request itself. May be modified in this callback. Instance only valid
within the scope of this method.void onProtocolExecution(CefBrowser browser, CefFrame frame, CefRequest request, BoolRef allowOsExecution)
browser - The corresponding browser.frame - The frame generating the event. Instance only valid within the scope of this
method.request - The request itself. Cannot be modified in this callback. Instance only valid
within the scope of this method.allowOsExecution - Set to true to attempt execution via the registered
OS protocol handler, if any.void onResourceLoadComplete(CefBrowser browser, CefFrame frame, CefRequest request, CefResponse response, CefURLRequest.Status status, long receivedContentLength)
browser - The corresponding browser.frame - The frame generating the event. Instance only valid within the scope of this
method.request - The request itself. Cannot be modified in this callback. Instance only valid
within the scope of this method.response - The request response. Cannot be modified in this callback. Instance only
valid within the scope of this method.status - The load completion status.receivedContentLength - The number of bytes read.void onResourceRedirect(CefBrowser browser, CefFrame frame, CefRequest request, CefResponse response, StringRef new_url)
browser - The corresponding browser.frame - The frame generating the event. Instance only valid within the scope of this
method.request - The request itself. Cannot be modified in this callback. Instance only valid
within the scope of this method.response - The response that resulted in the redirect. Cannot be modified in this
callback. Instance only valid within the scope of this method.new_url - Contains the new URL and can be changed if desired.boolean onResourceResponse(CefBrowser browser, CefFrame frame, CefRequest request, CefResponse response)
browser - The corresponding browser.frame - The frame generating the event. Instance only valid within the scope of this
method.request - The request itself. May be modified in this callback. Instance only valid
within the scope of this method.response - The request response. Cannot be modified in this callback. Instance only
valid within the scope of this method.