| // Copyright 2014 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "content/browser/service_worker/service_worker_histograms.h" |
| |
| #include "base/metrics/histogram.h" |
| |
| namespace content { |
| |
| // static |
| void ServiceWorkerHistograms::CountInitDiskCacheResult(bool result) { |
| UMA_HISTOGRAM_BOOLEAN("ServiceWorker.DiskCache.InitResult", result); |
| } |
| |
| // static |
| void ServiceWorkerHistograms::CountReadResponseResult( |
| ServiceWorkerHistograms::ReadResponseResult result) { |
| UMA_HISTOGRAM_ENUMERATION("ServiceWorker.DiskCache.ReadResponseResult", |
| result, NUM_READ_RESPONSE_RESULT_TYPES); |
| } |
| |
| // static |
| void ServiceWorkerHistograms::CountWriteResponseResult( |
| ServiceWorkerHistograms::WriteResponseResult result) { |
| UMA_HISTOGRAM_ENUMERATION("ServiceWorker.DiskCache.WriteResponseResult", |
| result, NUM_WRITE_RESPONSE_RESULT_TYPES); |
| } |
| |
| } // namespace content |