| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ |
| 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 NUM_TYPES | 113 NUM_TYPES |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 // Used for UMA. Append only. | 116 // Used for UMA. Append only. |
| 117 enum class Site { | 117 enum class Site { |
| 118 OTHER, // Obsolete for UMA. Use WITH_FETCH_HANDLER or | 118 OTHER, // Obsolete for UMA. Use WITH_FETCH_HANDLER or |
| 119 // WITHOUT_FETCH_HANDLER. | 119 // WITHOUT_FETCH_HANDLER. |
| 120 NEW_TAB_PAGE, | 120 NEW_TAB_PAGE, |
| 121 WITH_FETCH_HANDLER, | 121 WITH_FETCH_HANDLER, |
| 122 WITHOUT_FETCH_HANDLER, | 122 WITHOUT_FETCH_HANDLER, |
| 123 PLUS, |
| 124 INBOX, |
| 125 DOCS, |
| 123 NUM_TYPES | 126 NUM_TYPES |
| 124 }; | 127 }; |
| 125 | 128 |
| 126 // Not used for UMA. | 129 // Not used for UMA. |
| 127 enum class StartSituation { | 130 enum class StartSituation { |
| 128 UNKNOWN, | 131 UNKNOWN, |
| 129 DURING_STARTUP, | 132 DURING_STARTUP, |
| 130 EXISTING_PROCESS, | 133 EXISTING_PROCESS, |
| 131 NEW_PROCESS | 134 NEW_PROCESS |
| 132 }; | 135 }; |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 static void RecordStartStatusAfterFailure(int failure_count, | 271 static void RecordStartStatusAfterFailure(int failure_count, |
| 269 ServiceWorkerStatusCode status); | 272 ServiceWorkerStatusCode status); |
| 270 | 273 |
| 271 private: | 274 private: |
| 272 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics); | 275 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics); |
| 273 }; | 276 }; |
| 274 | 277 |
| 275 } // namespace content | 278 } // namespace content |
| 276 | 279 |
| 277 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ | 280 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ |
| OLD | NEW |