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

Side by Side Diff: content/browser/browser_context.cc

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 #include "content/public/browser/browser_context.h" 5 #include "content/public/browser/browser_context.h"
6 6
7 #include "content/browser/appcache/chrome_appcache_service.h" 7 #include "content/browser/appcache/chrome_appcache_service.h"
8 #include "webkit/database/database_tracker.h" 8 #include "webkit/database/database_tracker.h"
9 #include "content/browser/dom_storage/dom_storage_context_impl.h" 9 #include "content/browser/dom_storage/dom_storage_context_impl.h"
10 #include "content/browser/download/download_file_manager.h" 10 #include "content/browser/download/download_file_manager.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 kDownloadManagerKeyName, 92 kDownloadManagerKeyName,
93 new UserDataAdapter<DownloadManager>(download_manager)); 93 new UserDataAdapter<DownloadManager>(download_manager));
94 download_manager->SetDelegate(context->GetDownloadManagerDelegate()); 94 download_manager->SetDelegate(context->GetDownloadManagerDelegate());
95 download_manager->Init(context); 95 download_manager->Init(context);
96 } 96 }
97 97
98 return UserDataAdapter<DownloadManager>::Get( 98 return UserDataAdapter<DownloadManager>::Get(
99 context, kDownloadManagerKeyName); 99 context, kDownloadManagerKeyName);
100 } 100 }
101 101
102 quota::QuotaManager* BrowserContext::GetQuotaManager(
103 BrowserContext* browser_context) {
104 // TODO(ajwong): Change this API to require a SiteInstance instead of
105 // using GetDefaultStoragePartition().
106 return GetDefaultStoragePartition(browser_context)->GetQuotaManager();
107 }
108
109 IndexedDBContext* BrowserContext::GetIndexedDBContext( 102 IndexedDBContext* BrowserContext::GetIndexedDBContext(
110 BrowserContext* browser_context) { 103 BrowserContext* browser_context) {
111 // TODO(ajwong): Change this API to require a SiteInstance instead of 104 // TODO(ajwong): Change this API to require a SiteInstance instead of
112 // using GetDefaultStoragePartition(). 105 // using GetDefaultStoragePartition().
113 return GetDefaultStoragePartition(browser_context)->GetIndexedDBContext(); 106 return GetDefaultStoragePartition(browser_context)->GetIndexedDBContext();
114 } 107 }
115 108
116 webkit_database::DatabaseTracker* BrowserContext::GetDatabaseTracker( 109 webkit_database::DatabaseTracker* BrowserContext::GetDatabaseTracker(
117 BrowserContext* browser_context) { 110 BrowserContext* browser_context) {
118 // TODO(ajwong): Change this API to require a SiteInstance instead of 111 // TODO(ajwong): Change this API to require a SiteInstance instead of
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 ForEachStoragePartition(browser_context, 208 ForEachStoragePartition(browser_context,
216 base::Bind(&PurgeDOMStorageContextInPartition)); 209 base::Bind(&PurgeDOMStorageContextInPartition));
217 } 210 }
218 211
219 BrowserContext::~BrowserContext() { 212 BrowserContext::~BrowserContext() {
220 if (GetUserData(kDownloadManagerKeyName)) 213 if (GetUserData(kDownloadManagerKeyName))
221 GetDownloadManager(this)->Shutdown(); 214 GetDownloadManager(this)->Shutdown();
222 } 215 }
223 216
224 } // namespace content 217 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/quota_internals_handler.cc ('k') | content/browser/fileapi/file_system_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698