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 #include "content/browser/frame_mapper.h" | |
10 | 11 |
11 namespace fileapi { | 12 namespace fileapi { |
12 class FileSystemContext; | 13 class FileSystemContext; |
13 } | 14 } |
14 | 15 |
15 namespace net { | 16 namespace net { |
16 class URLRequestContextGetter; | 17 class URLRequestContextGetter; |
17 } | 18 } |
18 | 19 |
19 namespace quota { | 20 namespace quota { |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
95 virtual bool DidLastSessionExitCleanly() = 0; | 96 virtual bool DidLastSessionExitCleanly() = 0; |
96 | 97 |
97 // The following getters return references to various storage related | 98 // The following getters return references to various storage related |
98 // contexts associated with this browser context. | 99 // contexts associated with this browser context. |
99 virtual quota::QuotaManager* GetQuotaManager() = 0; | 100 virtual quota::QuotaManager* GetQuotaManager() = 0; |
100 virtual WebKitContext* GetWebKitContext() = 0; | 101 virtual WebKitContext* GetWebKitContext() = 0; |
101 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0; | 102 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0; |
102 virtual ChromeBlobStorageContext* GetBlobStorageContext() = 0; | 103 virtual ChromeBlobStorageContext* GetBlobStorageContext() = 0; |
103 virtual ChromeAppCacheService* GetAppCacheService() = 0; | 104 virtual ChromeAppCacheService* GetAppCacheService() = 0; |
104 virtual fileapi::FileSystemContext* GetFileSystemContext() = 0; | 105 virtual fileapi::FileSystemContext* GetFileSystemContext() = 0; |
106 | |
107 FrameMapper& frame_mapper() { return frame_mapper_; } | |
108 private: | |
109 FrameMapper frame_mapper_; | |
Charlie Reis
2011/12/01 23:13:02
Hmm, you might get pushback on this. It might nee
supersat
2011/12/09 23:08:20
Are frames in different browser contexts able to s
Charlie Reis
2011/12/12 22:20:36
Yes. Picture an isolated app that opens a window
supersat
2011/12/15 19:30:49
Okay. A BrowsingInstance initially seemed like the
| |
105 }; | 110 }; |
106 | 111 |
107 } // namespace content | 112 } // namespace content |
108 | 113 |
109 #if defined(COMPILER_GCC) | 114 #if defined(COMPILER_GCC) |
110 namespace __gnu_cxx { | 115 namespace __gnu_cxx { |
111 | 116 |
112 template<> | 117 template<> |
113 struct hash<content::BrowserContext*> { | 118 struct hash<content::BrowserContext*> { |
114 std::size_t operator()(content::BrowserContext* const& p) const { | 119 std::size_t operator()(content::BrowserContext* const& p) const { |
115 return reinterpret_cast<std::size_t>(p); | 120 return reinterpret_cast<std::size_t>(p); |
116 } | 121 } |
117 }; | 122 }; |
118 | 123 |
119 } // namespace __gnu_cxx | 124 } // namespace __gnu_cxx |
120 #endif | 125 #endif |
121 | 126 |
122 #endif // CONTENT_BROWSER_BROWSER_CONTEXT_H_ | 127 #endif // CONTENT_BROWSER_BROWSER_CONTEXT_H_ |
OLD | NEW |