Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Side by Side Diff: content/public/browser/browser_context.h

Issue 10919307: Move IndexedDBContext into the StoragePartition and ensure isolation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: stupid lowercasing Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
49 // It lives on the UI thread. All these methods must only be called on the UI 49 // It lives on the UI thread. All these methods must only be called on the UI
50 // thread. 50 // thread.
51 class CONTENT_EXPORT BrowserContext : public base::SupportsUserData { 51 class CONTENT_EXPORT BrowserContext : public base::SupportsUserData {
52 public: 52 public:
53 // Used in ForEachStoragePartition(). The first argument is the partition id. 53 // Used in ForEachStoragePartition(). The first argument is the partition id.
54 // The second argument is the StoragePartition object for that partition id. 54 // The second argument is the StoragePartition object for that partition id.
55 typedef base::Callback<void(const std::string&, StoragePartition*)> 55 typedef base::Callback<void(const std::string&, StoragePartition*)>
56 StoragePartitionCallback; 56 StoragePartitionCallback;
57 57
58 static DownloadManager* GetDownloadManager(BrowserContext* browser_context); 58 static DownloadManager* GetDownloadManager(BrowserContext* browser_context);
59 static IndexedDBContext* GetIndexedDBContext(BrowserContext* browser_context);
60 static appcache::AppCacheService* GetAppCacheService( 59 static appcache::AppCacheService* GetAppCacheService(
61 BrowserContext* browser_context); 60 BrowserContext* browser_context);
62 static fileapi::FileSystemContext* GetFileSystemContext( 61 static fileapi::FileSystemContext* GetFileSystemContext(
63 BrowserContext* browser_context); 62 BrowserContext* browser_context);
64 63
65 static content::StoragePartition* GetStoragePartition( 64 static content::StoragePartition* GetStoragePartition(
66 BrowserContext* browser_context, SiteInstance* site_instance); 65 BrowserContext* browser_context, SiteInstance* site_instance);
67 static content::StoragePartition* GetStoragePartitionForSite( 66 static content::StoragePartition* GetStoragePartitionForSite(
68 BrowserContext* browser_context, const GURL& site); 67 BrowserContext* browser_context, const GURL& site);
69 static void ForEachStoragePartition( 68 static void ForEachStoragePartition(
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 struct hash<content::BrowserContext*> { 154 struct hash<content::BrowserContext*> {
156 std::size_t operator()(content::BrowserContext* const& p) const { 155 std::size_t operator()(content::BrowserContext* const& p) const {
157 return reinterpret_cast<std::size_t>(p); 156 return reinterpret_cast<std::size_t>(p);
158 } 157 }
159 }; 158 };
160 159
161 } // namespace BASE_HASH_NAMESPACE 160 } // namespace BASE_HASH_NAMESPACE
162 #endif 161 #endif
163 162
164 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ 163 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698