OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ |
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ | 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ |
7 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "base/hash_tables.h" | 9 #include "base/hash_tables.h" |
10 #include "base/supports_user_data.h" | 10 #include "base/supports_user_data.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
49 // thread. | 49 // thread. |
50 class CONTENT_EXPORT BrowserContext : public base::SupportsUserData { | 50 class CONTENT_EXPORT BrowserContext : public base::SupportsUserData { |
51 public: | 51 public: |
52 // Used in ForEachStoragePartition(). The first argument is the partition id. | 52 // Used in ForEachStoragePartition(). The first argument is the partition id. |
53 // The second argument is the StoragePartition object for that partition id. | 53 // The second argument is the StoragePartition object for that partition id. |
54 typedef base::Callback<void(const std::string&, StoragePartition*)> | 54 typedef base::Callback<void(const std::string&, StoragePartition*)> |
55 StoragePartitionCallback; | 55 StoragePartitionCallback; |
56 | 56 |
57 static DownloadManager* GetDownloadManager(BrowserContext* browser_context); | 57 static DownloadManager* GetDownloadManager(BrowserContext* browser_context); |
58 static IndexedDBContext* GetIndexedDBContext(BrowserContext* browser_context); | 58 static IndexedDBContext* GetIndexedDBContext(BrowserContext* browser_context); |
59 static webkit_database::DatabaseTracker* GetDatabaseTracker( | |
michaeln
2012/08/27 22:09:57
Removing this method is the main point of this CL,
| |
60 BrowserContext* browser_context); | |
61 static appcache::AppCacheService* GetAppCacheService( | 59 static appcache::AppCacheService* GetAppCacheService( |
62 BrowserContext* browser_context); | 60 BrowserContext* browser_context); |
63 static fileapi::FileSystemContext* GetFileSystemContext( | 61 static fileapi::FileSystemContext* GetFileSystemContext( |
64 BrowserContext* browser_context); | 62 BrowserContext* browser_context); |
65 | 63 |
66 static content::StoragePartition* GetStoragePartition( | 64 static content::StoragePartition* GetStoragePartition( |
67 BrowserContext* browser_context, SiteInstance* site_instance); | 65 BrowserContext* browser_context, SiteInstance* site_instance); |
68 static void ForEachStoragePartition( | 66 static void ForEachStoragePartition( |
69 BrowserContext* browser_context, | 67 BrowserContext* browser_context, |
70 const StoragePartitionCallback& callback); | 68 const StoragePartitionCallback& callback); |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
154 struct hash<content::BrowserContext*> { | 152 struct hash<content::BrowserContext*> { |
155 std::size_t operator()(content::BrowserContext* const& p) const { | 153 std::size_t operator()(content::BrowserContext* const& p) const { |
156 return reinterpret_cast<std::size_t>(p); | 154 return reinterpret_cast<std::size_t>(p); |
157 } | 155 } |
158 }; | 156 }; |
159 | 157 |
160 } // namespace BASE_HASH_NAMESPACE | 158 } // namespace BASE_HASH_NAMESPACE |
161 #endif | 159 #endif |
162 | 160 |
163 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ | 161 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ |
OLD | NEW |