diff options
author | mkwst@chromium.org <mkwst@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-09 19:40:27 +0000 |
---|---|---|
committer | mkwst@chromium.org <mkwst@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-09 19:40:27 +0000 |
commit | 72f40864f540e393c941ceeea770d34f141c68d6 (patch) | |
tree | 3e40f159c9ec5977d968907b078bec713e21185e /webkit/quota/quota_client.h | |
parent | 138c6ec7f5ddaccb176a50e0cc4fbcfbadb34e45 (diff) | |
download | chromium_src-72f40864f540e393c941ceeea770d34f141c68d6.zip chromium_src-72f40864f540e393c941ceeea770d34f141c68d6.tar.gz chromium_src-72f40864f540e393c941ceeea770d34f141c68d6.tar.bz2 |
QuotaManager::DeleteOriginData allows deletion of specific QuotaClients
To enable a more fine-grained extension API that would allow removal of specific data types, this CL changes the QuotaClient::ID enum values to bitmasky flags, and adds a bitmask parameter to QuotaManager::DeleteOriginData and QuotaManager::DeleteHostData to filter the clients that are deleted for each origin.
BUG=94334
TEST=test_shell_tests,unit_tests
Review URL: http://codereview.chromium.org/7839029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121269 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/quota/quota_client.h')
-rw-r--r-- | webkit/quota/quota_client.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/webkit/quota/quota_client.h b/webkit/quota/quota_client.h index eb26c24..ab870c2 100644 --- a/webkit/quota/quota_client.h +++ b/webkit/quota/quota_client.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. @@ -30,14 +30,16 @@ class QuotaClient { virtual ~QuotaClient() {} enum ID { - kUnknown, - kFileSystem, - kDatabase, - kAppcache, - kIndexedDatabase, - kMockStart, // This needs to be the end of the enum. + kUnknown = 1 << 0, + kFileSystem = 1 << 1, + kDatabase = 1 << 2, + kAppcache = 1 << 3, + kIndexedDatabase = 1 << 4, + kMockStart = 1 << 5, // This needs to be the end of the enum. }; + static const int kAllClientsMask = -1; + virtual ID id() const = 0; // Called when the quota manager is destroyed. |