Chromium Embedded Framework (CEF)  131.2.1+ge081753+chromium-131.0.6778.13
CefResourceManager::Provider Class Referenceabstract

Interface implemented by resource providers. More...

#include "include/wrapper/cef_resource_manager.h"

Public Member Functions

virtual bool OnRequest (scoped_refptr< Request > request)=0
 Called to handle a request. More...
 
virtual void OnRequestCanceled (scoped_refptr< Request > request)
 Called when a request has been canceled. More...
 
virtual ~Provider ()=default
 

Detailed Description

Interface implemented by resource providers.

A provider may be created on any thread but the methods will be called on, and the object will be destroyed on, the browser process IO thread.

Constructor & Destructor Documentation

◆ ~Provider()

virtual CefResourceManager::Provider::~Provider ( )
virtualdefault

Member Function Documentation

◆ OnRequest()

virtual bool CefResourceManager::Provider::OnRequest ( scoped_refptr< Request request)
pure virtual

Called to handle a request.

If the provider knows immediately that it will not handle the request return false. Otherwise, return true and call Request::Continue or Request::Stop either in this method or asynchronously to indicate completion. See comments on Request for additional usage information.

◆ OnRequestCanceled()

virtual void CefResourceManager::Provider::OnRequestCanceled ( scoped_refptr< Request request)
inlinevirtual

Called when a request has been canceled.

It is still safe to dereference |request| but any calls to Request::Continue or Request::Stop will be ignored.


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