|
CEF3 C++ API Docs - Version 80.1.4+g8927396+chromium-80.0.3987.149 | ||||||
FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
CefBaseRefCounted | +--CefRequestContextin cef_request_context.h
A request context provides request handling for a set of related browser or URL request objects. A request context can be specified when creating a new browser via the CefBrowserHost static factory methods or when creating a new URL request via the CefURLRequest static factory methods. Browser objects with different request contexts will never be hosted in the same render process. Browser objects with the same request context may or may not be hosted in the same render process depending on the process model. Browser objects created indirectly via the JavaScript window.open function or targeted links will share the same render process and the same request context as the source browser. When running in single-process mode there is only a single render process (the main process) and so all browsers created in single-process mode will share the same request context. This will be the first request context passed into a CefBrowserHost static factory method and all other request context objects will be ignored.
Method Summary | |
virtual bool |
CanSetPreference( const CefString& name )= 0
Returns true if the preference with the specified |name| can be modified using SetPreference. |
virtual void |
ClearCertificateExceptions( CefRefPtr< CefCompletionCallback > callback )= 0
Clears all certificate exceptions that were added as part of handling CefRequestHandler::OnCertificateError(). |
virtual void |
ClearHttpAuthCredentials( CefRefPtr< CefCompletionCallback > callback )= 0
Clears all HTTP authentication credentials that were added as part of handling GetAuthCredentials. |
virtual bool |
ClearSchemeHandlerFactories()= 0
Clear all registered scheme handler factories. |
virtual void |
CloseAllConnections( CefRefPtr< CefCompletionCallback > callback )= 0
Clears all active and idle connections that Chromium currently has. |
static CefRefPtr< CefRequestContext > |
CreateContext( const CefRequestContextSettings& settings, CefRefPtr< CefRequestContextHandler > handler )
Creates a new context object with the specified |settings| and optional |handler|. |
static CefRefPtr< CefRequestContext > |
CreateContext( CefRefPtr< CefRequestContext > other, CefRefPtr< CefRequestContextHandler > handler )
Creates a new context object that shares storage with |other| and uses an optional |handler|. |
virtual bool |
DidLoadExtension( const CefString& extension_id )= 0
Returns true if this context was used to load the extension identified by |extension_id|. |
virtual CefRefPtr< CefDictionaryValue > |
GetAllPreferences( bool include_defaults )= 0
Returns all preferences as a dictionary. |
virtual CefString |
GetCachePath()= 0
Returns the cache path for this object. |
virtual CefRefPtr< CefCookieManager > |
GetCookieManager( CefRefPtr< CefCompletionCallback > callback )= 0
Returns the cookie manager for this object. |
virtual CefRefPtr< CefExtension > |
GetExtension( const CefString& extension_id )= 0
Returns the extension matching |extension_id| or NULL if no matching extension is accessible in this context (see HasExtension). |
virtual bool |
GetExtensions( std::vector< CefString >& extension_ids )= 0
Retrieve the list of all extensions that this context has access to (see HasExtension). |
static CefRefPtr< CefRequestContext > |
GetGlobalContext()
Returns the global context object. |
virtual CefRefPtr< CefRequestContextHandler > |
GetHandler()= 0
Returns the handler for this context if any. |
virtual CefRefPtr< CefMediaRouter > |
GetMediaRouter()= 0
Returns the MediaRouter object associated with this context. |
virtual CefRefPtr< CefValue > |
GetPreference( const CefString& name )= 0
Returns the value for the preference with the specified |name|. |
virtual bool |
HasExtension( const CefString& extension_id )= 0
Returns true if this context has access to the extension identified by |extension_id|. |
virtual bool |
HasPreference( const CefString& name )= 0
Returns true if a preference with the specified |name| exists. |
virtual bool |
IsGlobal()= 0
Returns true if this object is the global context. |
virtual bool |
IsSame( CefRefPtr< CefRequestContext > other )= 0
Returns true if this object is pointing to the same context as |that| object. |
virtual bool |
IsSharingWith( CefRefPtr< CefRequestContext > other )= 0
Returns true if this object is sharing the same storage as |that| object. |
virtual void |
LoadExtension( const CefString& root_directory, CefRefPtr< CefDictionaryValue > manifest, CefRefPtr< CefExtensionHandler > handler )= 0
Load an extension. |
virtual void |
PurgePluginListCache( bool reload_pages )= 0
Tells all renderer processes associated with this context to throw away their plugin list cache. |
virtual bool |
RegisterSchemeHandlerFactory( const CefString& scheme_name, const CefString& domain_name, CefRefPtr< CefSchemeHandlerFactory > factory )= 0
Register a scheme handler factory for the specified |scheme_name| and optional |domain_name|. |
virtual void |
ResolveHost( const CefString& origin, CefRefPtr< CefResolveCallback > callback )= 0
Attempts to resolve |origin| to a list of associated IP addresses. |
virtual bool |
SetPreference( const CefString& name, CefRefPtr< CefValue > value, CefString& error )= 0
Set the |value| associated with preference |name|. |
Methods inherited from class CefBaseRefCounted |
AddRef, Release, HasOneRef, HasAtLeastOneRef |
Method Detail |
public virtual bool CanSetPreference( const CefString& name )= 0;
public virtual void ClearCertificateExceptions( CefRefPtr< CefCompletionCallback > callback )= 0;
public virtual void ClearHttpAuthCredentials( CefRefPtr< CefCompletionCallback > callback )= 0;
public virtual bool ClearSchemeHandlerFactories()= 0;
public virtual void CloseAllConnections( CefRefPtr< CefCompletionCallback > callback )= 0;
public static CefRefPtr< CefRequestContext > CreateContext( const CefRequestContextSettings& settings, CefRefPtr< CefRequestContextHandler > handler );
public static CefRefPtr< CefRequestContext > CreateContext( CefRefPtr< CefRequestContext > other, CefRefPtr< CefRequestContextHandler > handler );
public virtual bool DidLoadExtension( const CefString& extension_id )= 0;
public virtual CefRefPtr< CefDictionaryValue > GetAllPreferences( bool include_defaults )= 0;
public virtual CefString GetCachePath()= 0;
public virtual CefRefPtr< CefCookieManager > GetCookieManager( CefRefPtr< CefCompletionCallback > callback )= 0;
public virtual CefRefPtr< CefExtension > GetExtension( const CefString& extension_id )= 0;
public virtual bool GetExtensions( std::vector< CefString >& extension_ids )= 0;
public static CefRefPtr< CefRequestContext > GetGlobalContext();
public virtual CefRefPtr< CefRequestContextHandler > GetHandler()= 0;
public virtual CefRefPtr< CefMediaRouter > GetMediaRouter()= 0;
public virtual CefRefPtr< CefValue > GetPreference( const CefString& name )= 0;
public virtual bool HasExtension( const CefString& extension_id )= 0;
public virtual bool HasPreference( const CefString& name )= 0;
public virtual bool IsGlobal()= 0;
public virtual bool IsSame( CefRefPtr< CefRequestContext > other )= 0;
public virtual bool IsSharingWith( CefRefPtr< CefRequestContext > other )= 0;
public virtual void LoadExtension( const CefString& root_directory, CefRefPtr< CefDictionaryValue > manifest, CefRefPtr< CefExtensionHandler > handler )= 0;
public virtual void PurgePluginListCache( bool reload_pages )= 0;
public virtual bool RegisterSchemeHandlerFactory( const CefString& scheme_name, const CefString& domain_name, CefRefPtr< CefSchemeHandlerFactory > factory )= 0;
public virtual void ResolveHost( const CefString& origin, CefRefPtr< CefResolveCallback > callback )= 0;
public virtual bool SetPreference( const CefString& name, CefRefPtr< CefValue > value, CefString& error )= 0;
|
CEF3 C++ API Docs - Version 80.1.4+g8927396+chromium-80.0.3987.149 | ||||||
FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |