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

Side by Side Diff: chrome/browser/browsing_data_quota_helper_impl.cc

Issue 10454113: Renaming `BrowsingDataHelper::IsValidScheme`, as it's poorly descriptive. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Bernhard. Created 8 years, 6 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_quota_helper_impl.h" 5 #include "chrome/browser/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"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 base::Time(), 78 base::Time(),
79 base::Bind(&BrowsingDataQuotaHelperImpl::GotOrigins, 79 base::Bind(&BrowsingDataQuotaHelperImpl::GotOrigins,
80 weak_factory_.GetWeakPtr())); 80 weak_factory_.GetWeakPtr()));
81 } 81 }
82 82
83 void BrowsingDataQuotaHelperImpl::GotOrigins( 83 void BrowsingDataQuotaHelperImpl::GotOrigins(
84 const std::set<GURL>& origins, quota::StorageType type) { 84 const std::set<GURL>& origins, quota::StorageType type) {
85 for (std::set<GURL>::const_iterator itr = origins.begin(); 85 for (std::set<GURL>::const_iterator itr = origins.begin();
86 itr != origins.end(); 86 itr != origins.end();
87 ++itr) 87 ++itr)
88 if (BrowsingDataHelper::HasValidScheme(*itr)) 88 if (BrowsingDataHelper::HasWebScheme(*itr))
89 pending_hosts_.insert(std::make_pair(itr->host(), type)); 89 pending_hosts_.insert(std::make_pair(itr->host(), type));
90 90
91 DCHECK(type == quota::kStorageTypeTemporary || 91 DCHECK(type == quota::kStorageTypeTemporary ||
92 type == quota::kStorageTypePersistent); 92 type == quota::kStorageTypePersistent);
93 93
94 if (type == quota::kStorageTypeTemporary) { 94 if (type == quota::kStorageTypeTemporary) {
95 quota_manager_->GetOriginsModifiedSince( 95 quota_manager_->GetOriginsModifiedSince(
96 quota::kStorageTypePersistent, 96 quota::kStorageTypePersistent,
97 base::Time(), 97 base::Time(),
98 base::Bind(&BrowsingDataQuotaHelperImpl::GotOrigins, 98 base::Bind(&BrowsingDataQuotaHelperImpl::GotOrigins,
(...skipping 70 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
« no previous file with comments | « chrome/browser/browsing_data_local_storage_helper.cc ('k') | chrome/browser/browsing_data_remover.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698