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

Unified Diff: webkit/quota/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: Kinuko's feedback (modulo kMockStart) Created 8 years, 10 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
« no previous file with comments | « webkit/quota/quota_client.h ('k') | webkit/quota/quota_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/quota/quota_manager.h
diff --git a/webkit/quota/quota_manager.h b/webkit/quota/quota_manager.h
index 70254c09870768754ad22c10f79d54b42f4d4d81..51d3a10d0d3ef1eb74fedd78bc6c79056523a413 100644
--- a/webkit/quota/quota_manager.h
+++ b/webkit/quota/quota_manager.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -148,12 +148,22 @@ class QuotaManager : public QuotaTaskObserver,
return origins_in_use_.find(origin) != origins_in_use_.end();
}
- // Called by UI.
+ // DeleteOriginData and DeleteHostData (surprisingly enough) delete data of a
+ // particular StorageType associated with either a specific origin or set of
+ // origins. Each method additionally requires a |quota_client_mask| which
+ // specifies the types of QuotaClients to delete from the origin. This is
+ // specified by the caller as a bitmask built from QuotaClient::IDs. Setting
+ // the mask to QuotaClient::kAllClientsMask will remove all clients from the
+ // origin, regardless of type.
+ //
+ // Both methods must be called on the UI thread.
virtual void DeleteOriginData(const GURL& origin,
StorageType type,
+ int quota_client_mask,
const StatusCallback& callback);
void DeleteHostData(const std::string& host,
StorageType type,
+ int quota_client_mask,
const StatusCallback& callback);
// Called by UI and internal modules.
« no previous file with comments | « webkit/quota/quota_client.h ('k') | webkit/quota/quota_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698