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

Unified Diff: webkit/quota/mock_special_storage_policy.h

Issue 10826270: QuotaManager: Return the remaining free disk space as quota. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes. 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 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 1ef6b7fc116a640f2577eb4d51670a05a8ddfef8..b4dac276e2bce23f4f5990f55180315eb0b07636 100644
--- a/webkit/quota/mock_special_storage_policy.h
+++ b/webkit/quota/mock_special_storage_policy.h
@@ -20,6 +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 IsFileHandler(const std::string& extension_id) OVERRIDE;
virtual bool HasSessionOnlyOrigins() OVERRIDE;
@@ -35,6 +36,12 @@ class MockSpecialStoragePolicy : public quota::SpecialStoragePolicy {
session_only_.insert(origin);
}
+ void AddInstalledApp(const GURL& origin) {
+ // Installed implies unlimited.
+ unlimited_.insert(origin);
+ installed_.insert(origin);
+ }
+
void AddFileHandler(const std::string& id) {
file_handlers_.insert(id);
}
@@ -47,6 +54,7 @@ class MockSpecialStoragePolicy : public quota::SpecialStoragePolicy {
protected_.clear();
unlimited_.clear();
session_only_.clear();
+ installed_.clear();
file_handlers_.clear();
all_unlimited_ = false;
}
@@ -62,6 +70,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<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