Chromium Embedded Framework (CEF)  115.2.0+g096e3eb+chromium-115.0.5790.13
CefResourceManager::Request Class Reference

Object representing a request. More...

#include "include/wrapper/cef_resource_manager.h"

Inheritance diagram for CefResourceManager::Request:
base::RefCountedThreadSafe< Request >

Public Member Functions

 Request (const Request &)=delete
 
Requestoperator= (const Request &)=delete
 
std::string url () const
 Returns the URL associated with this request. More...
 
CefRefPtr< CefBrowserbrowser () const
 Returns the CefBrowser associated with this request. More...
 
CefRefPtr< CefFrameframe () const
 Returns the CefFrame associated with this request. More...
 
CefRefPtr< CefRequestrequest () const
 Returns the CefRequest associated with this request. More...
 
const CefResourceManager::UrlFilterurl_filter () const
 Returns the current URL filter. More...
 
const CefResourceManager::MimeTypeResolvermime_type_resolver () const
 Returns the current mime type resolver. More...
 
void Continue (CefRefPtr< CefResourceHandler > handler)
 Continue handling the request. More...
 
void Stop ()
 Stop handling the request. More...
 
- Public Member Functions inherited from base::RefCountedThreadSafe< Request >
 RefCountedThreadSafe ()
 
 RefCountedThreadSafe (const RefCountedThreadSafe &)=delete
 
RefCountedThreadSafeoperator= (const RefCountedThreadSafe &)=delete
 
void AddRef () const
 
void Release () const
 

Friends

class base::RefCountedThreadSafe< Request >
 
class CefResourceManager
 

Additional Inherited Members

- Static Public Attributes inherited from base::RefCountedThreadSafe< Request >
static constexpr cef_subtle::StartRefCountFromZeroTag kRefCountPreference
 
- Protected Member Functions inherited from base::RefCountedThreadSafe< Request >
 ~RefCountedThreadSafe ()=default
 

Detailed Description

Object representing a request.

Each request object is used for a single call to Provider::OnRequest and will become detached (meaning the callbacks will no longer trigger) after Request::Continue or Request::Stop is called. A request passed to Provider::OnRequestCanceled will already have been detached. The methods of this class may be called on any browser process thread.

Constructor & Destructor Documentation

◆ Request()

CefResourceManager::Request::Request ( const Request )
delete

Member Function Documentation

◆ browser()

CefRefPtr<CefBrowser> CefResourceManager::Request::browser ( ) const
inline

Returns the CefBrowser associated with this request.

◆ Continue()

void CefResourceManager::Request::Continue ( CefRefPtr< CefResourceHandler handler)

Continue handling the request.

If |handler| is non-NULL then no additional providers will be called and the |handler| value will be returned via CefResourceManager::GetResourceHandler. If |handler| is NULL then the next provider in order, if any, will be called. If there are no additional providers then NULL will be returned via CefResourceManager:: GetResourceHandler.

◆ frame()

CefRefPtr<CefFrame> CefResourceManager::Request::frame ( ) const
inline

Returns the CefFrame associated with this request.

◆ mime_type_resolver()

const CefResourceManager::MimeTypeResolver& CefResourceManager::Request::mime_type_resolver ( ) const
inline

Returns the current mime type resolver.

◆ operator=()

Request& CefResourceManager::Request::operator= ( const Request )
delete

◆ request()

CefRefPtr<CefRequest> CefResourceManager::Request::request ( ) const
inline

Returns the CefRequest associated with this request.

◆ Stop()

void CefResourceManager::Request::Stop ( )

Stop handling the request.

No additional providers will be called and NULL will be returned via CefResourceManager::GetResourceHandler.

◆ url()

std::string CefResourceManager::Request::url ( ) const
inline

Returns the URL associated with this request.

The returned value will be fully qualified but will not contain query or fragment components. It will already have been passed through the URL filter.

◆ url_filter()

const CefResourceManager::UrlFilter& CefResourceManager::Request::url_filter ( ) const
inline

Returns the current URL filter.

Friends And Related Function Documentation

◆ base::RefCountedThreadSafe< Request >

friend class base::RefCountedThreadSafe< Request >
friend

◆ CefResourceManager

friend class CefResourceManager
friend

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