Index: content/browser/browser_context.h |
diff --git a/content/browser/browser_context.h b/content/browser/browser_context.h |
index 2477af5edecf71176dfeb8c6f2d9c1ce0a571328..8bdb1819f994bd6b002c183ba2846c6276b56610 100644 |
--- a/content/browser/browser_context.h |
+++ b/content/browser/browser_context.h |
@@ -6,117 +6,8 @@ |
#define CONTENT_BROWSER_BROWSER_CONTEXT_H_ |
#pragma once |
-#include "base/hash_tables.h" |
- |
-namespace fileapi { |
-class FileSystemContext; |
-} |
- |
-namespace net { |
-class URLRequestContextGetter; |
-} |
- |
-namespace quota { |
-class QuotaManager; |
-} |
- |
-namespace webkit_database { |
-class DatabaseTracker; |
-} |
- |
-class ChromeAppCacheService; |
-class ChromeBlobStorageContext; |
-class DownloadManager; |
-class FilePath; |
-class GeolocationPermissionContext; |
-class SpeechInputPreferences; |
-class HostZoomMap; |
-class SSLHostState; |
-class WebKitContext; |
- |
-namespace content { |
- |
-class ResourceContext; |
- |
-// This class holds the context needed for a browsing session. |
-// It lives on the UI thread. |
-class BrowserContext { |
- public: |
- virtual ~BrowserContext() {} |
- |
- // Returns the path of the directory where this context's data is stored. |
- virtual FilePath GetPath() = 0; |
- |
- // Return whether this context is incognito. Default is false. |
- // This doesn't belong here; http://crbug.com/89628 |
- virtual bool IsOffTheRecord() = 0; |
- |
- // Retrieves a pointer to the SSLHostState associated with this context. |
- // The SSLHostState is lazily created the first time that this method is |
- // called. |
- virtual SSLHostState* GetSSLHostState() = 0; |
- |
- // Returns the DownloadManager associated with this context. |
- virtual DownloadManager* GetDownloadManager() = 0; |
- |
- // Returns the request context information associated with this context. Call |
- // this only on the UI thread, since it can send notifications that should |
- // happen on the UI thread. |
- virtual net::URLRequestContextGetter* GetRequestContext() = 0; |
- |
- // Returns the request context appropriate for the given renderer. If the |
- // renderer process doesn't have an associated installed app, or if the |
- // installed app's is_storage_isolated() returns false, this is equivalent to |
- // calling GetRequestContext(). |
- // TODO(creis): After isolated app storage is no longer an experimental |
- // feature, consider making this the default contract for GetRequestContext. |
- virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( |
- int renderer_child_id) = 0; |
- |
- // Returns the request context for media resources asociated with this |
- // context. |
- virtual net::URLRequestContextGetter* GetRequestContextForMedia() = 0; |
- |
- // Returns the resource context. |
- virtual const ResourceContext& GetResourceContext() = 0; |
- |
- // Returns the Hostname <-> Zoom Level map for this context. |
- virtual HostZoomMap* GetHostZoomMap() = 0; |
- |
- // Returns the geolocation permission context for this context. |
- virtual GeolocationPermissionContext* GetGeolocationPermissionContext() = 0; |
- |
- // Returns the speech input preferences. SpeechInputPreferences is a |
- // ref counted class, so callers should take a reference if needed. |
- virtual SpeechInputPreferences* GetSpeechInputPreferences() = 0; |
- |
- // Returns true if the last time this context was open it was exited cleanly. |
- // This doesn't belong here; http://crbug.com/90737 |
- virtual bool DidLastSessionExitCleanly() = 0; |
- |
- // The following getters return references to various storage related |
- // contexts associated with this browser context. |
- virtual quota::QuotaManager* GetQuotaManager() = 0; |
- virtual WebKitContext* GetWebKitContext() = 0; |
- virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0; |
- virtual ChromeBlobStorageContext* GetBlobStorageContext() = 0; |
- virtual ChromeAppCacheService* GetAppCacheService() = 0; |
- virtual fileapi::FileSystemContext* GetFileSystemContext() = 0; |
-}; |
- |
-} // namespace content |
- |
-#if defined(COMPILER_GCC) |
-namespace __gnu_cxx { |
- |
-template<> |
-struct hash<content::BrowserContext*> { |
- std::size_t operator()(content::BrowserContext* const& p) const { |
- return reinterpret_cast<std::size_t>(p); |
- } |
-}; |
- |
-} // namespace __gnu_cxx |
-#endif |
+// Deprecated header. |
+// TODO(joi): Remove in a follow-up change. |
+#include "content/public/browser/browser_context.h" |
#endif // CONTENT_BROWSER_BROWSER_CONTEXT_H_ |