diff options
author | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-17 03:31:31 +0000 |
---|---|---|
committer | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-17 03:31:31 +0000 |
commit | 4b66b659788f41749e431b109b89ce8aa67952f4 (patch) | |
tree | f2b497ba81493714b2363740b080486281a3cf51 /webkit/database | |
parent | 74aafb471d019ab7e6197d19fc58e32c430f5c38 (diff) | |
download | chromium_src-4b66b659788f41749e431b109b89ce8aa67952f4.zip chromium_src-4b66b659788f41749e431b109b89ce8aa67952f4.tar.gz chromium_src-4b66b659788f41749e431b109b89ce8aa67952f4.tar.bz2 |
Added DeleteOriginData to QuotaClient
BUG=61676
TEST=SandboxQuotaClientTest.DeleteOriginTest
Review URL: http://codereview.chromium.org/7003021
Patch from Taiju Tsuiki <tzik@google.com>.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85588 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/database')
-rw-r--r-- | webkit/database/database_quota_client.cc | 10 | ||||
-rw-r--r-- | webkit/database/database_quota_client.h | 3 |
2 files changed, 13 insertions, 0 deletions
diff --git a/webkit/database/database_quota_client.cc b/webkit/database/database_quota_client.cc index 4f3da01..4e26e37 100644 --- a/webkit/database/database_quota_client.cc +++ b/webkit/database/database_quota_client.cc @@ -4,6 +4,8 @@ #include "webkit/database/database_quota_client.h" +#include <vector> + #include "base/message_loop_proxy.h" #include "net/base/net_util.h" #include "webkit/database/database_tracker.h" @@ -198,6 +200,14 @@ void DatabaseQuotaClient::GetOriginsForHost( } } +void DatabaseQuotaClient::DeleteOriginData(const GURL& origin, + quota::StorageType type, + DeletionCallback* callback) { + // TODO(tzik): implement me + callback->Run(quota::kQuotaErrorNotSupported); + delete callback; +} + void DatabaseQuotaClient::DidGetOriginUsage( const GURL& origin_url, int64 usage) { DCHECK(usage_for_origin_callbacks_.HasCallbacks(origin_url)); diff --git a/webkit/database/database_quota_client.h b/webkit/database/database_quota_client.h index 5733e57..b965a97 100644 --- a/webkit/database/database_quota_client.h +++ b/webkit/database/database_quota_client.h @@ -40,6 +40,9 @@ class DatabaseQuotaClient : public quota::QuotaClient, virtual void GetOriginsForHost(quota::StorageType type, const std::string& host, GetOriginsCallback* callback) OVERRIDE; + virtual void DeleteOriginData(const GURL& origin, + quota::StorageType type, + DeletionCallback* callback) OVERRIDE; private: class HelperTask; class GetOriginUsageTask; |