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. 4 5#include "content/browser/service_worker/service_worker_histograms.h" 6 7#include "base/metrics/histogram.h" 8 9namespace content { 10 11// static 12void ServiceWorkerHistograms::CountInitDiskCacheResult(bool result) { 13 UMA_HISTOGRAM_BOOLEAN("ServiceWorker.DiskCache.InitResult", result); 14} 15 16// static 17void ServiceWorkerHistograms::CountReadResponseResult( 18 ServiceWorkerHistograms::ReadResponseResult result) { 19 UMA_HISTOGRAM_ENUMERATION("ServiceWorker.DiskCache.ReadResponseResult", 20 result, NUM_READ_RESPONSE_RESULT_TYPES); 21} 22 23// static 24void ServiceWorkerHistograms::CountWriteResponseResult( 25 ServiceWorkerHistograms::WriteResponseResult result) { 26 UMA_HISTOGRAM_ENUMERATION("ServiceWorker.DiskCache.WriteResponseResult", 27 result, NUM_WRITE_RESPONSE_RESULT_TYPES); 28} 29 30} // namespace content 31