diff options
author | jkarlin <jkarlin@chromium.org> | 2014-10-17 16:38:21 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-17 23:38:38 +0000 |
commit | 22fcbd3c898136dfe839de3ca5cb0633c17bb163 (patch) | |
tree | 0fc8ada3bf1ebfc96bd26d10be0a368ebe8af942 /storage/browser | |
parent | 75aa137c42979e30c37661c3a6e87d9cc95e7dfd (diff) | |
download | chromium_src-22fcbd3c898136dfe839de3ca5cb0633c17bb163.zip chromium_src-22fcbd3c898136dfe839de3ca5cb0633c17bb163.tar.gz chromium_src-22fcbd3c898136dfe839de3ca5cb0633c17bb163.tar.bz2 |
[ServiceWorkerCache] Implement storage::QuotaClient
Adds a QuotaClient for the ServiceWorkerCache system.
* Calls to the QuotaManagerProxy like (NotifyStorageAccessed/StorageModified/OriginInUse/etc..) will be in an upcoming CL.
* The ServiceWorkerCacheQuotaClient is registered by the ServiceWorkerCacheStorageManager. The QuotaClient holds a WeakPtr to the ServiceWorkerCacheStorageManager since the manager is destroyed before the QuotaClient.
* Added a number of unittests. They fit better into the StorageManager tests file than in their own file as they rely on a lot of the StorageManager infrastructure.
* In order to support QuotaClient the ServiceWorkerCacheStorageManager needs to be able to list the origins it supports. This data is not currently stored so an "origin" member has been added to the CacheStorage index protobuf. We won't report the origins of existing caches (if any even exist at this point) until their index is next written.
BUG=420159
Review URL: https://codereview.chromium.org/651983002
Cr-Commit-Position: refs/heads/master@{#300187}
Diffstat (limited to 'storage/browser')
-rw-r--r-- | storage/browser/quota/quota_client.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/storage/browser/quota/quota_client.h b/storage/browser/quota/quota_client.h index 5fb3c89..a472206 100644 --- a/storage/browser/quota/quota_client.h +++ b/storage/browser/quota/quota_client.h @@ -36,6 +36,7 @@ class STORAGE_EXPORT QuotaClient { kAppcache = 1 << 3, kIndexedDatabase = 1 << 4, kServiceWorker = 1 << 5, + kServiceWorkerCache = 1 << 6, kAllClientsMask = -1, }; |