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

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

Issue 10834264: Add BrowserContext::GetQuotaManagerForRenderProcess for the isolated app feature. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 4 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/hash_tables.h" 8 #include "base/hash_tables.h"
9 #include "base/supports_user_data.h" 9 #include "base/supports_user_data.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 30 matching lines...) Expand all
41 class IndexedDBContext; 41 class IndexedDBContext;
42 class ResourceContext; 42 class ResourceContext;
43 class SpeechRecognitionPreferences; 43 class SpeechRecognitionPreferences;
44 44
45 // This class holds the context needed for a browsing session. 45 // This class holds the context needed for a browsing session.
46 // It lives on the UI thread. All these methods must only be called on the UI 46 // It lives on the UI thread. All these methods must only be called on the UI
47 // thread. 47 // thread.
48 class CONTENT_EXPORT BrowserContext : public base::SupportsUserData { 48 class CONTENT_EXPORT BrowserContext : public base::SupportsUserData {
49 public: 49 public:
50 static DownloadManager* GetDownloadManager(BrowserContext* browser_context); 50 static DownloadManager* GetDownloadManager(BrowserContext* browser_context);
51 static quota::QuotaManager* GetQuotaManager(BrowserContext* browser_context); 51
52 static quota::QuotaManager* GetDefaultQuotaManager(
53 BrowserContext* browser_context);
54 static quota::QuotaManager* GetQuotaManagerForRenderProcess(
55 BrowserContext* browser_context, int renderer_child_id);
56
52 static DOMStorageContext* GetDefaultDOMStorageContext( 57 static DOMStorageContext* GetDefaultDOMStorageContext(
53 BrowserContext* browser_context); 58 BrowserContext* browser_context);
54 static DOMStorageContext* GetDOMStorageContext( 59 static DOMStorageContext* GetDOMStorageContext(
55 BrowserContext* browser_context, int renderer_child_id); 60 BrowserContext* browser_context, int renderer_child_id);
61
56 static IndexedDBContext* GetIndexedDBContext(BrowserContext* browser_context); 62 static IndexedDBContext* GetIndexedDBContext(BrowserContext* browser_context);
63
57 static webkit_database::DatabaseTracker* GetDatabaseTracker( 64 static webkit_database::DatabaseTracker* GetDatabaseTracker(
58 BrowserContext* browser_context); 65 BrowserContext* browser_context);
66
59 static appcache::AppCacheService* GetAppCacheService( 67 static appcache::AppCacheService* GetAppCacheService(
60 BrowserContext* browser_context); 68 BrowserContext* browser_context);
69
61 static fileapi::FileSystemContext* GetFileSystemContext( 70 static fileapi::FileSystemContext* GetFileSystemContext(
62 BrowserContext* browser_context); 71 BrowserContext* browser_context);
63 72
64 // Ensures that the corresponding ResourceContext is initialized. Normally the 73 // Ensures that the corresponding ResourceContext is initialized. Normally the
65 // BrowserContext initializs the corresponding getters when its objects are 74 // BrowserContext initializs the corresponding getters when its objects are
66 // created, but if the embedder wants to pass the ResourceContext to another 75 // created, but if the embedder wants to pass the ResourceContext to another
67 // thread before they use BrowserContext, they should call this to make sure 76 // thread before they use BrowserContext, they should call this to make sure
68 // that the ResourceContext is ready. 77 // that the ResourceContext is ready.
69 static void EnsureResourceContextInitialized(BrowserContext* browser_context); 78 static void EnsureResourceContextInitialized(BrowserContext* browser_context);
70 79
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 struct hash<content::BrowserContext*> { 145 struct hash<content::BrowserContext*> {
137 std::size_t operator()(content::BrowserContext* const& p) const { 146 std::size_t operator()(content::BrowserContext* const& p) const {
138 return reinterpret_cast<std::size_t>(p); 147 return reinterpret_cast<std::size_t>(p);
139 } 148 }
140 }; 149 };
141 150
142 } // namespace BASE_HASH_NAMESPACE 151 } // namespace BASE_HASH_NAMESPACE
143 #endif 152 #endif
144 153
145 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ 154 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698