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

Side by Side Diff: chrome/browser/browsing_data/browsing_data_quota_helper_impl.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
« no previous file with comments | « no previous file | chrome/browser/browsing_data/browsing_data_remover.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "chrome/browser/browsing_data/browsing_data_quota_helper_impl.h" 5 #include "chrome/browser/browsing_data/browsing_data_quota_helper_impl.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/common/url_constants.h" 13 #include "chrome/common/url_constants.h"
14 #include "chrome/browser/browsing_data/browsing_data_helper.h" 14 #include "chrome/browser/browsing_data/browsing_data_helper.h"
15 #include "content/public/browser/browser_context.h"
16 #include "content/public/browser/storage_partition.h"
15 #include "webkit/quota/quota_manager.h" 17 #include "webkit/quota/quota_manager.h"
16 18
17 using content::BrowserThread; 19 using content::BrowserThread;
20 using content::BrowserContext;
18 21
19 // static 22 // static
20 BrowsingDataQuotaHelper* BrowsingDataQuotaHelper::Create(Profile* profile) { 23 BrowsingDataQuotaHelper* BrowsingDataQuotaHelper::Create(Profile* profile) {
21 return new BrowsingDataQuotaHelperImpl( 24 return new BrowsingDataQuotaHelperImpl(
22 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), 25 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI),
23 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO), 26 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO),
24 content::BrowserContext::GetQuotaManager(profile)); 27 BrowserContext::GetDefaultStoragePartition(profile)->GetQuotaManager());
25 } 28 }
26 29
27 void BrowsingDataQuotaHelperImpl::StartFetching( 30 void BrowsingDataQuotaHelperImpl::StartFetching(
28 const FetchResultCallback& callback) { 31 const FetchResultCallback& callback) {
29 DCHECK_EQ(false, callback.is_null()); 32 DCHECK_EQ(false, callback.is_null());
30 DCHECK(callback_.is_null()); 33 DCHECK(callback_.is_null());
31 DCHECK(!is_fetching_); 34 DCHECK(!is_fetching_);
32 callback_ = callback; 35 callback_ = callback;
33 quota_info_.clear(); 36 quota_info_.clear();
34 is_fetching_ = true; 37 is_fetching_ = true;
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 callback_.Run(result); 172 callback_.Run(result);
170 callback_.Reset(); 173 callback_.Reset();
171 } 174 }
172 175
173 void BrowsingDataQuotaHelperImpl::DidRevokeHostQuota( 176 void BrowsingDataQuotaHelperImpl::DidRevokeHostQuota(
174 quota::QuotaStatusCode status_unused, 177 quota::QuotaStatusCode status_unused,
175 const std::string& host_unused, 178 const std::string& host_unused,
176 quota::StorageType type_unused, 179 quota::StorageType type_unused,
177 int64 quota_unused) { 180 int64 quota_unused) {
178 } 181 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/browsing_data/browsing_data_remover.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698