| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_BROWSER_CONTEXT_H_ | 5 #ifndef CONTENT_BROWSER_BROWSER_CONTEXT_H_ |
| 6 #define CONTENT_BROWSER_BROWSER_CONTEXT_H_ | 6 #define CONTENT_BROWSER_BROWSER_CONTEXT_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/hash_tables.h" | 9 #include "base/hash_tables.h" |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 namespace webkit_database { | 23 namespace webkit_database { |
| 24 class DatabaseTracker; | 24 class DatabaseTracker; |
| 25 } | 25 } |
| 26 | 26 |
| 27 class ChromeAppCacheService; | 27 class ChromeAppCacheService; |
| 28 class ChromeBlobStorageContext; | 28 class ChromeBlobStorageContext; |
| 29 class DownloadManager; | 29 class DownloadManager; |
| 30 class FilePath; | 30 class FilePath; |
| 31 class GeolocationPermissionContext; | 31 class GeolocationPermissionContext; |
| 32 class SpeechInputPreferences; |
| 32 class HostZoomMap; | 33 class HostZoomMap; |
| 33 class SSLHostState; | 34 class SSLHostState; |
| 34 class WebKitContext; | 35 class WebKitContext; |
| 35 | 36 |
| 36 namespace content { | 37 namespace content { |
| 37 | 38 |
| 38 class ResourceContext; | 39 class ResourceContext; |
| 39 | 40 |
| 40 // This class holds the context needed for a browsing session. | 41 // This class holds the context needed for a browsing session. |
| 41 // It lives on the UI thread. | 42 // It lives on the UI thread. |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 | 80 |
| 80 // Returns the resource context. | 81 // Returns the resource context. |
| 81 virtual const ResourceContext& GetResourceContext() = 0; | 82 virtual const ResourceContext& GetResourceContext() = 0; |
| 82 | 83 |
| 83 // Returns the Hostname <-> Zoom Level map for this context. | 84 // Returns the Hostname <-> Zoom Level map for this context. |
| 84 virtual HostZoomMap* GetHostZoomMap() = 0; | 85 virtual HostZoomMap* GetHostZoomMap() = 0; |
| 85 | 86 |
| 86 // Returns the geolocation permission context for this context. | 87 // Returns the geolocation permission context for this context. |
| 87 virtual GeolocationPermissionContext* GetGeolocationPermissionContext() = 0; | 88 virtual GeolocationPermissionContext* GetGeolocationPermissionContext() = 0; |
| 88 | 89 |
| 90 // Returns the speech input preferences. SpeechInputPreferences is a |
| 91 // ref counted class, so callers should take a reference if needed. |
| 92 virtual SpeechInputPreferences* GetSpeechInputPreferences() = 0; |
| 93 |
| 89 // Returns true if the last time this context was open it was exited cleanly. | 94 // Returns true if the last time this context was open it was exited cleanly. |
| 90 // This doesn't belong here; http://crbug.com/90737 | 95 // This doesn't belong here; http://crbug.com/90737 |
| 91 virtual bool DidLastSessionExitCleanly() = 0; | 96 virtual bool DidLastSessionExitCleanly() = 0; |
| 92 | 97 |
| 93 // The following getters return references to various storage related | 98 // The following getters return references to various storage related |
| 94 // contexts associated with this browser context. | 99 // contexts associated with this browser context. |
| 95 virtual quota::QuotaManager* GetQuotaManager() = 0; | 100 virtual quota::QuotaManager* GetQuotaManager() = 0; |
| 96 virtual WebKitContext* GetWebKitContext() = 0; | 101 virtual WebKitContext* GetWebKitContext() = 0; |
| 97 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0; | 102 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0; |
| 98 virtual ChromeBlobStorageContext* GetBlobStorageContext() = 0; | 103 virtual ChromeBlobStorageContext* GetBlobStorageContext() = 0; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 109 struct hash<content::BrowserContext*> { | 114 struct hash<content::BrowserContext*> { |
| 110 std::size_t operator()(content::BrowserContext* const& p) const { | 115 std::size_t operator()(content::BrowserContext* const& p) const { |
| 111 return reinterpret_cast<std::size_t>(p); | 116 return reinterpret_cast<std::size_t>(p); |
| 112 } | 117 } |
| 113 }; | 118 }; |
| 114 | 119 |
| 115 } // namespace __gnu_cxx | 120 } // namespace __gnu_cxx |
| 116 #endif | 121 #endif |
| 117 | 122 |
| 118 #endif // CONTENT_BROWSER_BROWSER_CONTEXT_H_ | 123 #endif // CONTENT_BROWSER_BROWSER_CONTEXT_H_ |
| OLD | NEW |