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

Unified Diff: webkit/quota/mock_quota_manager.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/mock_quota_manager.h
diff --git a/webkit/quota/mock_quota_manager.h b/webkit/quota/mock_quota_manager.h
index 636404d7e8e504eee599fb9bfd618ab45acc254e..a04bacde2e1bc6064807a2c37f9b7c2dde61add0 100644
--- a/webkit/quota/mock_quota_manager.h
+++ b/webkit/quota/mock_quota_manager.h
@@ -31,11 +31,13 @@ class MockQuotaManager : public QuotaManager {
struct OriginInfo {
OriginInfo(const GURL& origin,
StorageType type,
+ int quota_client_mask,
base::Time modified);
~OriginInfo();
GURL origin;
StorageType type;
+ int mask;
jochen (gone - plz use gerrit) 2011/09/12 11:23:00 quota_client_mask so it's clear what it is?
base::Time modified;
};
@@ -49,12 +51,17 @@ class MockQuotaManager : public QuotaManager {
// Adds an origin to the canned list that will be searched through via
// GetOriginsModifiedSince.
- bool AddOrigin(const GURL& origin, StorageType type, base::Time modified);
+ bool AddOrigin(const GURL& origin,
+ StorageType type,
+ int quota_client_mask,
+ base::Time modified);
// Checks an origin and type against the origins that have been added via
// AddOrigin and removed via DeleteOriginData. If the origin exists in the
- // canned list with the proper StorageType, returns true.
- bool OriginHasData(const GURL& origin, StorageType type) const;
+ // canned list with the proper StorageType and client, returns true.
+ bool OriginHasData(const GURL& origin,
+ StorageType type,
+ QuotaClient::ID quota_client) const;
// Overrides QuotaManager's implementation with a canned implementation that
// allows clients to set up the origin database that should be queried. This
@@ -67,6 +74,7 @@ class MockQuotaManager : public QuotaManager {
// anything on disk.
virtual void DeleteOriginData(const GURL& origin,
StorageType type,
+ int quota_client_mask,
StatusCallback* callback) OVERRIDE;
private:
class GetModifiedSinceTask;

Powered by Google App Engine
This is Rietveld 408576698