[ServiceWorkerCache] Return the real size of the cache in GetOriginUsage.
commit05431b14d85d159302effdd81850f4376cc9ae15
authorjkarlin <jkarlin@chromium.org>
Fri, 24 Oct 2014 14:29:34 +0000 (24 07:29 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 24 Oct 2014 14:29:58 +0000 (24 14:29 +0000)
treeeb3f8449c6c088df618a8821c4bf4eef3f0491b6
parent3eb4c81eaed932e31892a8e09028e2ee067fa024
[ServiceWorkerCache] Return the real size of the cache in GetOriginUsage.

The size of the cache on disk is used if the backend is persistent, else the size of the entries in memory is returned.

Downstream of: https://codereview.chromium.org/674873002/

BUG=420159

Review URL: https://codereview.chromium.org/672943002

Cr-Commit-Position: refs/heads/master@{#301097}
content/browser/service_worker/service_worker_cache.cc
content/browser/service_worker/service_worker_cache.h
content/browser/service_worker/service_worker_cache_storage.cc
content/browser/service_worker/service_worker_cache_storage.h
content/browser/service_worker/service_worker_cache_storage_manager.cc
content/browser/service_worker/service_worker_cache_storage_manager.h
content/browser/service_worker/service_worker_cache_storage_manager_unittest.cc
content/browser/service_worker/service_worker_cache_unittest.cc