Chromium Embedded Framework (CEF)  130.1.2+g48f3ef6+chromium-130.0.6723.44
CefRequestContextHandler Class Reference

Implement this interface to provide handler implementations. More...

#include "include/cef_request_context_handler.h"

Inheritance diagram for CefRequestContextHandler:
CefBaseRefCounted

Public Member Functions

virtual void OnRequestContextInitialized (CefRefPtr< CefRequestContext > request_context)
 Called on the browser process UI thread immediately after the request context has been initialized. More...
 
virtual CefRefPtr< CefResourceRequestHandlerGetResourceRequestHandler (CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefRefPtr< CefRequest > request, bool is_navigation, bool is_download, const CefString &request_initiator, bool &disable_default_handling)
 Called on the browser process IO thread before a resource request is initiated. More...
 
- Public Member Functions inherited from CefBaseRefCounted
virtual void AddRef () const =0
 Called to increment the reference count for the object. More...
 
virtual bool Release () const =0
 Called to decrement the reference count for the object. More...
 
virtual bool HasOneRef () const =0
 Returns true if the reference count is 1. More...
 
virtual bool HasAtLeastOneRef () const =0
 Returns true if the reference count is at least 1. More...
 

Additional Inherited Members

- Protected Member Functions inherited from CefBaseRefCounted
virtual ~CefBaseRefCounted ()
 

Detailed Description

Implement this interface to provide handler implementations.

The handler instance will not be released until all objects related to the context have been destroyed.

Member Function Documentation

◆ GetResourceRequestHandler()

virtual CefRefPtr<CefResourceRequestHandler> CefRequestContextHandler::GetResourceRequestHandler ( CefRefPtr< CefBrowser browser,
CefRefPtr< CefFrame frame,
CefRefPtr< CefRequest request,
bool  is_navigation,
bool  is_download,
const CefString request_initiator,
bool &  disable_default_handling 
)
inlinevirtual

Called on the browser process IO thread before a resource request is initiated.

The |browser| and |frame| values represent the source of the request, and may be NULL for requests originating from service workers or CefURLRequest. |request| represents the request contents and cannot be modified in this callback. |is_navigation| will be true if the resource request is a navigation. |is_download| will be true if the resource request is a download. |request_initiator| is the origin (scheme + domain) of the page that initiated the request. Set |disable_default_handling| to true to disable default handling of the request, in which case it will need to be handled via CefResourceRequestHandler::GetResourceHandler or it will be canceled. To allow the resource load to proceed with default handling return NULL. To specify a handler for the resource return a CefResourceRequestHandler object. This method will not be called if the client associated with |browser| returns a non-NULL value from CefRequestHandler::GetResourceRequestHandler for the same request (identified by CefRequest::GetIdentifier).

◆ OnRequestContextInitialized()

virtual void CefRequestContextHandler::OnRequestContextInitialized ( CefRefPtr< CefRequestContext request_context)
inlinevirtual

Called on the browser process UI thread immediately after the request context has been initialized.


The documentation for this class was generated from the following file: