Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: content/browser/service_worker/service_worker_disk_cache.cc

Issue 2858133002: Add uma stats to help evaluate the impact of changes to the quota allocation logic. (Closed)
Patch Set: macros Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/service_worker/service_worker_disk_cache.h" 5 #include "content/browser/service_worker/service_worker_disk_cache.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 ServiceWorkerDiskCache::ServiceWorkerDiskCache() 9 ServiceWorkerDiskCache::ServiceWorkerDiskCache()
10 : AppCacheDiskCache(true /* use_simple_cache */) {} 10 : AppCacheDiskCache(true /* use_simple_cache */) {
11 uma_name_ = "DiskCache.ServiceWorker";
12 }
11 13
12 ServiceWorkerResponseReader::ServiceWorkerResponseReader( 14 ServiceWorkerResponseReader::ServiceWorkerResponseReader(
13 int64_t resource_id, 15 int64_t resource_id,
14 const base::WeakPtr<AppCacheDiskCacheInterface>& disk_cache) 16 const base::WeakPtr<AppCacheDiskCacheInterface>& disk_cache)
15 : AppCacheResponseReader(resource_id, disk_cache) {} 17 : AppCacheResponseReader(resource_id, disk_cache) {}
16 18
17 ServiceWorkerResponseWriter::ServiceWorkerResponseWriter( 19 ServiceWorkerResponseWriter::ServiceWorkerResponseWriter(
18 int64_t resource_id, 20 int64_t resource_id,
19 const base::WeakPtr<AppCacheDiskCacheInterface>& disk_cache) 21 const base::WeakPtr<AppCacheDiskCacheInterface>& disk_cache)
20 : AppCacheResponseWriter(resource_id, disk_cache) {} 22 : AppCacheResponseWriter(resource_id, disk_cache) {}
21 23
22 ServiceWorkerResponseMetadataWriter::ServiceWorkerResponseMetadataWriter( 24 ServiceWorkerResponseMetadataWriter::ServiceWorkerResponseMetadataWriter(
23 int64_t resource_id, 25 int64_t resource_id,
24 const base::WeakPtr<AppCacheDiskCacheInterface>& disk_cache) 26 const base::WeakPtr<AppCacheDiskCacheInterface>& disk_cache)
25 : AppCacheResponseMetadataWriter(resource_id, disk_cache) {} 27 : AppCacheResponseMetadataWriter(resource_id, disk_cache) {}
26 28
27 } // namespace content 29 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/cache_storage/cache_storage_cache.cc ('k') | storage/browser/blob/blob_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698