diff options
author | tzik@chromium.org <tzik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-30 12:28:24 +0000 |
---|---|---|
committer | tzik@chromium.org <tzik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-30 12:28:24 +0000 |
commit | ec0c85be62690694c24bcff2a40c2f9dbd9c3c74 (patch) | |
tree | e5950840b31bb9d53d28958ea92295f229bf26aa /webkit/browser/quota/quota_callbacks.h | |
parent | b347ca13aa3bfcf1bb801e6c04695654c899796c (diff) | |
download | chromium_src-ec0c85be62690694c24bcff2a40c2f9dbd9c3c74.zip chromium_src-ec0c85be62690694c24bcff2a40c2f9dbd9c3c74.tar.gz chromium_src-ec0c85be62690694c24bcff2a40c2f9dbd9c3c74.tar.bz2 |
[Quota] Wire up limited origin usage retrieving.
This CL implements UsageTracker::GetGlobalLimitedUsage without gathering usages for all origins.
Using cache-disabled temporary unlimited storage will no longer hurt performance for other origins, after the change.
The CL also fixes usage calculation: the usages of cache-disabled limited origins will be counted as limited storage,
though it was counted as unlimited, previously.
BUG=220029
TEST=UsageTrackerTest.LimitedGlobalUsageTest
Review URL: https://chromiumcodereview.appspot.com/15950004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203125 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/browser/quota/quota_callbacks.h')
-rw-r--r-- | webkit/browser/quota/quota_callbacks.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/webkit/browser/quota/quota_callbacks.h b/webkit/browser/quota/quota_callbacks.h index cc0e735..84f52c0 100644 --- a/webkit/browser/quota/quota_callbacks.h +++ b/webkit/browser/quota/quota_callbacks.h @@ -70,6 +70,8 @@ class CallbackQueue { typedef CallbackQueue<GlobalUsageCallback, Tuple2<int64, int64> > GlobalUsageCallbackQueue; +typedef CallbackQueue<UsageCallback, Tuple1<int64> > + UsageCallbackQueue; typedef CallbackQueue<AvailableSpaceCallback, Tuple2<QuotaStatusCode, int64> > AvailableSpaceCallbackQueue; |