Chromium Embedded Framework (CEF)  127.1.0+ga1ec504+chromium-127.0.6533.57
CefCookieAccessFilter Class Reference

Implement this interface to filter cookies that may be sent or received from resource requests. More...

#include "include/cef_resource_request_handler.h"

Inheritance diagram for CefCookieAccessFilter:
CefBaseRefCounted

Public Member Functions

virtual bool CanSendCookie (CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefRefPtr< CefRequest > request, const CefCookie &cookie)
 Called on the IO thread before a resource request is sent. More...
 
virtual bool CanSaveCookie (CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefRefPtr< CefRequest > request, CefRefPtr< CefResponse > response, const CefCookie &cookie)
 Called on the IO thread after a resource response is received. 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 filter cookies that may be sent or received from resource requests.

The methods of this class will be called on the IO thread unless otherwise indicated.

Member Function Documentation

◆ CanSaveCookie()

virtual bool CefCookieAccessFilter::CanSaveCookie ( CefRefPtr< CefBrowser browser,
CefRefPtr< CefFrame frame,
CefRefPtr< CefRequest request,
CefRefPtr< CefResponse response,
const CefCookie cookie 
)
inlinevirtual

Called on the IO thread after a resource response is received.

The |browser| and |frame| values represent the source of the request, and may be NULL for requests originating from service workers or CefURLRequest. |request| cannot be modified in this callback. Return true if the specified cookie returned with the response can be saved or false otherwise.

◆ CanSendCookie()

virtual bool CefCookieAccessFilter::CanSendCookie ( CefRefPtr< CefBrowser browser,
CefRefPtr< CefFrame frame,
CefRefPtr< CefRequest request,
const CefCookie cookie 
)
inlinevirtual

Called on the IO thread before a resource request is sent.

The |browser| and |frame| values represent the source of the request, and may be NULL for requests originating from service workers or CefURLRequest. |request| cannot be modified in this callback. Return true if the specified cookie can be sent with the request or false otherwise.


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