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
3 // found in the LICENSE file.
5 #include "content/browser/service_worker/service_worker_histograms.h"
7 #include "base/metrics/histogram.h"
12 void ServiceWorkerHistograms::CountInitDiskCacheResult(bool result) {
13 UMA_HISTOGRAM_BOOLEAN("ServiceWorker.DiskCache.InitResult", result);
17 void ServiceWorkerHistograms::CountReadResponseResult(
18 ServiceWorkerHistograms::ReadResponseResult result) {
19 UMA_HISTOGRAM_ENUMERATION("ServiceWorker.DiskCache.ReadResponseResult",
20 result, NUM_READ_RESPONSE_RESULT_TYPES);
24 void ServiceWorkerHistograms::CountWriteResponseResult(
25 ServiceWorkerHistograms::WriteResponseResult result) {
26 UMA_HISTOGRAM_ENUMERATION("ServiceWorker.DiskCache.WriteResponseResult",
27 result, NUM_WRITE_RESPONSE_RESULT_TYPES);
30 } // namespace content