summaryrefslogtreecommitdiffstats
path: root/webkit/quota
diff options
context:
space:
mode:
authorcalvinlo@chromium.org <calvinlo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-10 05:25:04 +0000
committercalvinlo@chromium.org <calvinlo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-10 05:25:04 +0000
commit1cd0362fa6ab8f9a16f982f0367c095cbca13876 (patch)
tree790f872171c7f022ce4382aa801127e58f57dee6 /webkit/quota
parent0322986db244b38e8fd15b7db6099440527cfcbd (diff)
downloadchromium_src-1cd0362fa6ab8f9a16f982f0367c095cbca13876.zip
chromium_src-1cd0362fa6ab8f9a16f982f0367c095cbca13876.tar.gz
chromium_src-1cd0362fa6ab8f9a16f982f0367c095cbca13876.tar.bz2
Added safe callback comment after QuotaClient is destructed
BUG=139270 Review URL: https://chromiumcodereview.appspot.com/11096019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161052 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/quota')
-rw-r--r--webkit/quota/quota_client.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/webkit/quota/quota_client.h b/webkit/quota/quota_client.h
index cb756a6..e74ffb3 100644
--- a/webkit/quota/quota_client.h
+++ b/webkit/quota/quota_client.h
@@ -45,22 +45,26 @@ class QuotaClient {
// Called by the QuotaManager.
// Gets the amount of data stored in the storage specified by
// |origin_url| and |type|.
+ // Note it is safe to fire the callback after the QuotaClient is destructed.
virtual void GetOriginUsage(const GURL& origin_url,
StorageType type,
const GetUsageCallback& callback) = 0;
// Called by the QuotaManager.
// Returns a list of origins that has data in the |type| storage.
+ // Note it is safe to fire the callback after the QuotaClient is destructed.
virtual void GetOriginsForType(StorageType type,
const GetOriginsCallback& callback) = 0;
// Called by the QuotaManager.
// Returns a list of origins that match the |host|.
+ // Note it is safe to fire the callback after the QuotaClient is destructed.
virtual void GetOriginsForHost(StorageType type,
const std::string& host,
const GetOriginsCallback& callback) = 0;
// Called by the QuotaManager.
+ // Note it is safe to fire the callback after the QuotaClient is destructed.
virtual void DeleteOriginData(const GURL& origin,
StorageType type,
const DeletionCallback& callback) = 0;