Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_HISTOGRAMS_H_ | |
| 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_HISTOGRAMS_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 | |
| 10 namespace content { | |
| 11 | |
| 12 class ServiceWorkerHistograms { | |
| 13 public: | |
| 14 static void CountInitDiskCacheResult(bool result); | |
| 15 | |
| 16 enum ReadResponseResult { | |
|
michaeln
2014/06/05 22:24:10
nit: style guide says to put enums before methods
nhiroki
2014/06/05 23:55:07
Done.
| |
| 17 READ_OK, | |
| 18 READ_HEADERS_ERROR, | |
| 19 READ_DATA_ERROR, | |
| 20 NUM_READ_RESPONSE_RESULT_TYPES, | |
| 21 }; | |
| 22 static void CountReadResponseResult(ReadResponseResult result); | |
| 23 | |
| 24 enum WriteResponseResult { | |
| 25 WRITE_OK, | |
| 26 WRITE_HEADERS_ERROR, | |
| 27 WRITE_DATA_ERROR, | |
| 28 NUM_WRITE_RESPONSE_RESULT_TYPES, | |
| 29 }; | |
| 30 static void CountWriteResponseResult(WriteResponseResult result); | |
| 31 | |
| 32 private: | |
| 33 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerHistograms); | |
| 34 }; | |
| 35 | |
| 36 } // namespace content | |
| 37 | |
| 38 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_HISTOGRAMS_H_ | |
| OLD | NEW |