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

Unified Diff: webkit/quota/mock_special_storage_policy.h

Issue 14237003: Rename SpecialStoragePolicy::IsInstalledApp() to CanQueryDiskSize() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: webkit/quota/mock_special_storage_policy.h
diff --git a/webkit/quota/mock_special_storage_policy.h b/webkit/quota/mock_special_storage_policy.h
index ed8d2ec2d7323fe7eeb440195f14d2fc6257696c..3a7fcb9e9623d5b30b79c5eefac648e6459ee14e 100644
--- a/webkit/quota/mock_special_storage_policy.h
+++ b/webkit/quota/mock_special_storage_policy.h
@@ -20,7 +20,7 @@ class MockSpecialStoragePolicy : public quota::SpecialStoragePolicy {
virtual bool IsStorageProtected(const GURL& origin) OVERRIDE;
virtual bool IsStorageUnlimited(const GURL& origin) OVERRIDE;
virtual bool IsStorageSessionOnly(const GURL& origin) OVERRIDE;
- virtual bool IsInstalledApp(const GURL& origin) OVERRIDE;
+ virtual bool CanQueryDiskSize(const GURL& origin) OVERRIDE;
virtual bool IsFileHandler(const std::string& extension_id) OVERRIDE;
virtual bool HasSessionOnlyOrigins() OVERRIDE;
@@ -36,8 +36,8 @@ class MockSpecialStoragePolicy : public quota::SpecialStoragePolicy {
session_only_.insert(origin);
}
- void AddInstalledApp(const GURL& origin) {
- installed_.insert(origin);
+ void GrantQueryDiskSize(const GURL& origin) {
+ can_query_disk_size_.insert(origin);
}
void AddFileHandler(const std::string& id) {
@@ -52,7 +52,7 @@ class MockSpecialStoragePolicy : public quota::SpecialStoragePolicy {
protected_.clear();
unlimited_.clear();
session_only_.clear();
- installed_.clear();
+ can_query_disk_size_.clear();
file_handlers_.clear();
all_unlimited_ = false;
}
@@ -68,7 +68,7 @@ class MockSpecialStoragePolicy : public quota::SpecialStoragePolicy {
std::set<GURL> protected_;
std::set<GURL> unlimited_;
std::set<GURL> session_only_;
- std::set<GURL> installed_;
+ std::set<GURL> can_query_disk_size_;
std::set<std::string> file_handlers_;
bool all_unlimited_;
« no previous file with comments | « chrome/browser/extensions/mock_extension_special_storage_policy.cc ('k') | webkit/quota/mock_special_storage_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698