| Index: content/browser/service_worker/service_worker_histograms.h
|
| diff --git a/content/browser/service_worker/service_worker_histograms.h b/content/browser/service_worker/service_worker_histograms.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a9ad8c6ef06be7969cc9f8e3508de9dff68eaa32
|
| --- /dev/null
|
| +++ b/content/browser/service_worker/service_worker_histograms.h
|
| @@ -0,0 +1,38 @@
|
| +// 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.
|
| +
|
| +#ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_HISTOGRAMS_H_
|
| +#define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_HISTOGRAMS_H_
|
| +
|
| +#include "base/macros.h"
|
| +
|
| +namespace content {
|
| +
|
| +class ServiceWorkerHistograms {
|
| + public:
|
| + enum ReadResponseResult {
|
| + READ_OK,
|
| + READ_HEADERS_ERROR,
|
| + READ_DATA_ERROR,
|
| + NUM_READ_RESPONSE_RESULT_TYPES,
|
| + };
|
| +
|
| + enum WriteResponseResult {
|
| + WRITE_OK,
|
| + WRITE_HEADERS_ERROR,
|
| + WRITE_DATA_ERROR,
|
| + NUM_WRITE_RESPONSE_RESULT_TYPES,
|
| + };
|
| +
|
| + static void CountInitDiskCacheResult(bool result);
|
| + static void CountReadResponseResult(ReadResponseResult result);
|
| + static void CountWriteResponseResult(WriteResponseResult result);
|
| +
|
| + private:
|
| + DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerHistograms);
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_HISTOGRAMS_H_
|
|
|