|
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 |
base::RefCountedThreadSafe
|
+--CefResourceManager
in cef_resource_manager.hClass for managing multiple resource providers. For each resource request providers will be called in order and have the option to (a) handle the request by returning a CefResourceHandler, (b) pass the request to the next provider in order, or (c) stop handling the request. See comments on the Request object for additional usage information. The methods of this class may be called on any browser process thread unless otherwise indicated.
Inner Classes, Typedefs, and Enums | |
typedef |
CefResourceManager::MimeTypeResolver
Used to resolve mime types for URLs, usually based on the file extension. |
typedef |
CefResourceManager::PendingHandlersMap
|
class |
CefResourceManager::Provider
Interface implemented by resource providers. |
typedef |
CefResourceManager::ProviderEntryList
|
class |
CefResourceManager::Request
Object representing a request. |
typedef |
CefResourceManager::RequestList
|
struct |
CefResourceManager::RequestParams
|
struct |
CefResourceManager::RequestState
|
typedef |
CefResourceManager::UrlFilter
Provides an opportunity to modify |url| before it is passed to a provider. |
Constructor Summary | |
|
CefResourceManager()
|
private |
~CefResourceManager()
|
Method Summary | |
void |
AddArchiveProvider( const std::string& url_path, const std::string& archive_path, const std::string& password, int order, const std::string& identifier )
Add a provider that maps requests that start with |url_path| to files stored in the archive file at |archive_path|. |
void |
AddContentProvider( const std::string& url, const std::string& content, const std::string& mime_type, int order, const std::string& identifier )
Add a provider that maps requests for |url| to |content|. |
void |
AddDirectoryProvider( const std::string& url_path, const std::string& directory_path, int order, const std::string& identifier )
Add a provider that maps requests that start with |url_path| to files under |directory_path|. |
void |
AddProvider( CefResourceManager::Provider* provider, int order, const std::string& identifier )
Add a provider. |
CefRefPtr< CefResourceHandler > |
GetResourceHandler( CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefRefPtr< CefRequest > request )
Called from CefRequestHandler::GetResourceHandler on the browser process IO thread. |
cef_return_value_t |
OnBeforeResourceLoad( CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefRefPtr< CefRequest > request, CefRefPtr< CefRequestCallback > callback )
Called from CefRequestHandler::OnBeforeResourceLoad on the browser process IO thread. |
void |
RemoveAllProviders()
Remove all providers. |
void |
RemoveProviders( const std::string& identifier )
Remove all providers with the specified |identifier| value. |
void |
SetMimeTypeResolver( const CefResourceManager::MimeTypeResolver& resolver )
Set the mime type resolver. |
void |
SetUrlFilter( const CefResourceManager::UrlFilter& filter )
Set the url filter. |
Constructor Detail |
public CefResourceManager();
private ~CefResourceManager();
Method Detail |
public void AddArchiveProvider( const std::string& url_path, const std::string& archive_path, const std::string& password, int order, const std::string& identifier );
public void AddContentProvider( const std::string& url, const std::string& content, const std::string& mime_type, int order, const std::string& identifier );
public void AddDirectoryProvider( const std::string& url_path, const std::string& directory_path, int order, const std::string& identifier );
public void AddProvider( CefResourceManager::Provider* provider, int order, const std::string& identifier );
public CefRefPtr< CefResourceHandler > GetResourceHandler( CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefRefPtr< CefRequest > request );
public cef_return_value_t OnBeforeResourceLoad( CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefRefPtr< CefRequest > request, CefRefPtr< CefRequestCallback > callback );
public void RemoveAllProviders();
public void RemoveProviders( const std::string& identifier );
public void SetMimeTypeResolver( const CefResourceManager::MimeTypeResolver& resolver );
public void SetUrlFilter( const CefResourceManager::UrlFilter& filter );
|
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 |