Chromium Code Reviews| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 79 | 79 |
| 80 // Returns the resource context. | 80 // Returns the resource context. |
| 81 virtual const ResourceContext& GetResourceContext() = 0; | 81 virtual const ResourceContext& GetResourceContext() = 0; |
| 82 | 82 |
| 83 // Returns the Hostname <-> Zoom Level map for this context. | 83 // Returns the Hostname <-> Zoom Level map for this context. |
| 84 virtual HostZoomMap* GetHostZoomMap() = 0; | 84 virtual HostZoomMap* GetHostZoomMap() = 0; |
| 85 | 85 |
| 86 // Returns the geolocation permission context for this context. | 86 // Returns the geolocation permission context for this context. |
| 87 virtual GeolocationPermissionContext* GetGeolocationPermissionContext() = 0; | 87 virtual GeolocationPermissionContext* GetGeolocationPermissionContext() = 0; |
| 88 | 88 |
| 89 // Returns the speech preference of whether to censor results. | |
| 90 virtual bool GetSpeechCensorPref() = 0; | |
|
Satish
2011/09/23 09:44:57
similar to comment in profile.h, could this return
allanwoj
2011/09/23 14:12:44
Done.
| |
| 91 | |
| 89 // Returns true if the last time this context was open it was exited cleanly. | 92 // Returns true if the last time this context was open it was exited cleanly. |
| 90 // This doesn't belong here; http://crbug.com/90737 | 93 // This doesn't belong here; http://crbug.com/90737 |
| 91 virtual bool DidLastSessionExitCleanly() = 0; | 94 virtual bool DidLastSessionExitCleanly() = 0; |
| 92 | 95 |
| 93 // The following getters return references to various storage related | 96 // The following getters return references to various storage related |
| 94 // contexts associated with this browser context. | 97 // contexts associated with this browser context. |
| 95 virtual quota::QuotaManager* GetQuotaManager() = 0; | 98 virtual quota::QuotaManager* GetQuotaManager() = 0; |
| 96 virtual WebKitContext* GetWebKitContext() = 0; | 99 virtual WebKitContext* GetWebKitContext() = 0; |
| 97 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0; | 100 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0; |
| 98 virtual ChromeBlobStorageContext* GetBlobStorageContext() = 0; | 101 virtual ChromeBlobStorageContext* GetBlobStorageContext() = 0; |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 109 struct hash<content::BrowserContext*> { | 112 struct hash<content::BrowserContext*> { |
| 110 std::size_t operator()(content::BrowserContext* const& p) const { | 113 std::size_t operator()(content::BrowserContext* const& p) const { |
| 111 return reinterpret_cast<std::size_t>(p); | 114 return reinterpret_cast<std::size_t>(p); |
| 112 } | 115 } |
| 113 }; | 116 }; |
| 114 | 117 |
| 115 } // namespace __gnu_cxx | 118 } // namespace __gnu_cxx |
| 116 #endif | 119 #endif |
| 117 | 120 |
| 118 #endif // CONTENT_BROWSER_BROWSER_CONTEXT_H_ | 121 #endif // CONTENT_BROWSER_BROWSER_CONTEXT_H_ |
| OLD | NEW |