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

Unified Diff: chrome/browser/extensions/mock_extension_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: chrome/browser/extensions/mock_extension_special_storage_policy.h
diff --git a/chrome/browser/extensions/mock_extension_special_storage_policy.h b/chrome/browser/extensions/mock_extension_special_storage_policy.h
index fafbc36b8dd9c419ed2859c4eccd2b0d217ff674..f225ccd5d20cbb9753999c80fffe47ace73b87c0 100644
--- a/chrome/browser/extensions/mock_extension_special_storage_policy.h
+++ b/chrome/browser/extensions/mock_extension_special_storage_policy.h
@@ -22,6 +22,7 @@ class MockExtensionSpecialStoragePolicy : public ExtensionSpecialStoragePolicy {
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;
@@ -29,32 +30,10 @@ class MockExtensionSpecialStoragePolicy : public ExtensionSpecialStoragePolicy {
protected_.insert(origin);
}
- void AddUnlimited(const GURL& origin) {
- unlimited_.insert(origin);
- }
-
- void AddSessionOnly(const GURL& origin) {
- session_only_.insert(origin);
- }
-
- void AddFileHandler(const std::string& id) {
- file_handlers_.insert(id);
- }
-
- void Reset() {
- protected_.clear();
- unlimited_.clear();
- session_only_.clear();
- file_handlers_.clear();
- }
-
private:
virtual ~MockExtensionSpecialStoragePolicy();
std::set<GURL> protected_;
- std::set<GURL> unlimited_;
- std::set<GURL> session_only_;
- std::set<std::string> file_handlers_;
DISALLOW_COPY_AND_ASSIGN(MockExtensionSpecialStoragePolicy);
};

Powered by Google App Engine
This is Rietveld 408576698