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

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
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 "webkit/quota/quota_manager.h" 15 #include "webkit/quota/quota_manager.h"
16 16
17 using content::BrowserThread; 17 using content::BrowserThread;
18 18
19 // static 19 // static
20 BrowsingDataQuotaHelper* BrowsingDataQuotaHelper::Create(Profile* profile) { 20 BrowsingDataQuotaHelper* BrowsingDataQuotaHelper::Create(Profile* profile) {
21 return new BrowsingDataQuotaHelperImpl( 21 return new BrowsingDataQuotaHelperImpl(
22 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), 22 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI),
23 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO), 23 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO),
24 content::BrowserContext::GetQuotaManager(profile)); 24 content::BrowserContext::GetDefaultQuotaManager(profile));
25 } 25 }
26 26
27 void BrowsingDataQuotaHelperImpl::StartFetching( 27 void BrowsingDataQuotaHelperImpl::StartFetching(
28 const FetchResultCallback& callback) { 28 const FetchResultCallback& callback) {
29 DCHECK_EQ(false, callback.is_null()); 29 DCHECK_EQ(false, callback.is_null());
30 DCHECK(callback_.is_null()); 30 DCHECK(callback_.is_null());
31 DCHECK(!is_fetching_); 31 DCHECK(!is_fetching_);
32 callback_ = callback; 32 callback_ = callback;
33 quota_info_.clear(); 33 quota_info_.clear();
34 is_fetching_ = true; 34 is_fetching_ = true;
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 callback_.Run(result); 169 callback_.Run(result);
170 callback_.Reset(); 170 callback_.Reset();
171 } 171 }
172 172
173 void BrowsingDataQuotaHelperImpl::DidRevokeHostQuota( 173 void BrowsingDataQuotaHelperImpl::DidRevokeHostQuota(
174 quota::QuotaStatusCode status_unused, 174 quota::QuotaStatusCode status_unused,
175 const std::string& host_unused, 175 const std::string& host_unused,
176 quota::StorageType type_unused, 176 quota::StorageType type_unused,
177 int64 quota_unused) { 177 int64 quota_unused) {
178 } 178 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698