| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 // GEOFENCING = 6, // Obsolete | 88 // GEOFENCING = 6, // Obsolete |
| 89 // SERVICE_PORT_CONNECT = 7, // Obsolete | 89 // SERVICE_PORT_CONNECT = 7, // Obsolete |
| 90 MESSAGE = 8, | 90 MESSAGE = 8, |
| 91 NOTIFICATION_CLOSE = 9, | 91 NOTIFICATION_CLOSE = 9, |
| 92 FETCH_MAIN_FRAME = 10, | 92 FETCH_MAIN_FRAME = 10, |
| 93 FETCH_SUB_FRAME = 11, | 93 FETCH_SUB_FRAME = 11, |
| 94 FETCH_SHARED_WORKER = 12, | 94 FETCH_SHARED_WORKER = 12, |
| 95 FETCH_SUB_RESOURCE = 13, | 95 FETCH_SUB_RESOURCE = 13, |
| 96 UNKNOWN = 14, // Used when event type is not known. | 96 UNKNOWN = 14, // Used when event type is not known. |
| 97 FOREIGN_FETCH = 15, | 97 FOREIGN_FETCH = 15, |
| 98 FETCH_WAITUNTIL = 16, |
| 98 // Add new events to record here. | 99 // Add new events to record here. |
| 99 NUM_TYPES | 100 NUM_TYPES |
| 100 }; | 101 }; |
| 101 | 102 |
| 102 // Used for UMA. Append only. | 103 // Used for UMA. Append only. |
| 103 enum class Site { OTHER, NEW_TAB_PAGE, NUM_TYPES }; | 104 enum class Site { OTHER, NEW_TAB_PAGE, NUM_TYPES }; |
| 104 | 105 |
| 105 // Not used for UMA. | 106 // Not used for UMA. |
| 106 enum class StartSituation { | 107 enum class StartSituation { |
| 107 UNKNOWN, | 108 UNKNOWN, |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 static void RecordStartStatusAfterFailure(int failure_count, | 222 static void RecordStartStatusAfterFailure(int failure_count, |
| 222 ServiceWorkerStatusCode status); | 223 ServiceWorkerStatusCode status); |
| 223 | 224 |
| 224 private: | 225 private: |
| 225 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics); | 226 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics); |
| 226 }; | 227 }; |
| 227 | 228 |
| 228 } // namespace content | 229 } // namespace content |
| 229 | 230 |
| 230 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ | 231 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ |
| OLD | NEW |