mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add PDF extension support (issue #1565)
This commit is contained in:
@ -20,6 +20,7 @@ class DownloadManagerDelegate;
|
||||
class SpeechRecognitionPreferences;
|
||||
}
|
||||
|
||||
class CefBrowserContextProxy;
|
||||
class CefDownloadManagerDelegate;
|
||||
class CefSSLHostStateDelegate;
|
||||
|
||||
@ -36,8 +37,20 @@ class CefBrowserContextImpl : public CefBrowserContext {
|
||||
static scoped_refptr<CefBrowserContextImpl> GetForCachePath(
|
||||
const base::FilePath& cache_path);
|
||||
|
||||
// Returns the underlying CefBrowserContextImpl if any.
|
||||
static CefRefPtr<CefBrowserContextImpl> GetForContext(
|
||||
content::BrowserContext* context);
|
||||
|
||||
// Returns all existing CefBrowserContextImpl.
|
||||
static std::vector<CefBrowserContextImpl*> GetAll();
|
||||
|
||||
// Must be called immediately after this object is created.
|
||||
void Initialize();
|
||||
void Initialize() override;
|
||||
|
||||
// Track associated proxy objects.
|
||||
void AddProxy(const CefBrowserContextProxy* proxy);
|
||||
void RemoveProxy(const CefBrowserContextProxy* proxy);
|
||||
bool HasProxy(const content::BrowserContext* context) const;
|
||||
|
||||
// BrowserContext methods.
|
||||
base::FilePath GetPath() const override;
|
||||
@ -62,7 +75,6 @@ class CefBrowserContextImpl : public CefBrowserContext {
|
||||
content::PermissionManager* GetPermissionManager() override;
|
||||
|
||||
// CefBrowserContext methods.
|
||||
bool IsProxy() const override;
|
||||
const CefRequestContextSettings& GetSettings() const override;
|
||||
CefRefPtr<CefRequestContextHandler> GetHandler() const override;
|
||||
net::URLRequestContextGetter* CreateRequestContext(
|
||||
@ -93,6 +105,10 @@ class CefBrowserContextImpl : public CefBrowserContext {
|
||||
CefRequestContextSettings settings_;
|
||||
base::FilePath cache_path_;
|
||||
|
||||
// Not owned by this class.
|
||||
typedef std::vector<const CefBrowserContextProxy*> ProxyList;
|
||||
ProxyList proxy_list_;
|
||||
|
||||
scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_;
|
||||
|
||||
scoped_ptr<CefDownloadManagerDelegate> download_manager_delegate_;
|
||||
|
Reference in New Issue
Block a user