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

Unified Diff: webkit/quota/quota_client.h

Issue 7839029: QuotaManager::DeleteOriginData now allows deletion of specific QuotaClients (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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/quota_client.h
diff --git a/webkit/quota/quota_client.h b/webkit/quota/quota_client.h
index 312e5d0d244f4bc6f122e72d2fd7214e07384a80..4a601509d89610250fd503672edddf4e4dd6cc5c 100644
--- a/webkit/quota/quota_client.h
+++ b/webkit/quota/quota_client.h
@@ -30,14 +30,17 @@ class QuotaClient {
virtual ~QuotaClient() {}
enum ID {
- kUnknown,
- kFileSystem,
- kDatabase,
- kAppcache,
- kIndexedDatabase,
+ kUnknown = 1 << 0,
+ kFileSystem = 1 << 1,
+ kDatabase = 1 << 2,
+ kAppcache = 1 << 3,
+ kIndexedDatabase = 1 << 4,
kMockStart, // This needs to be the end of the enum.
kinuko 2011/09/26 09:43:48 what should we do if we want to test the feature w
};
+ static const int kAllClientsMask = kFileSystem | kDatabase | kAppcache |
+ kIndexedDatabase;
kinuko 2011/09/26 09:43:48 -1?
+
virtual ID id() const = 0;
// Called when the quota manager is destroyed.
@@ -67,6 +70,10 @@ class QuotaClient {
DeletionCallback* callback) = 0;
};
+const int kQuotaClientAllIDsMask = QuotaClient::kFileSystem |
+ QuotaClient::kDatabase | QuotaClient::kAppcache |
+ QuotaClient::kIndexedDatabase;
kinuko 2011/09/26 09:43:48 is this a dupe of line 41?
+
// TODO(dmikurube): Replace it to std::vector for efficiency.
typedef std::list<QuotaClient*> QuotaClientList;

Powered by Google App Engine
This is Rietveld 408576698