| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 // GEOFENCING = 6, // Obsolete | 90 // GEOFENCING = 6, // Obsolete |
| 91 // SERVICE_PORT_CONNECT = 7, // Obsolete | 91 // SERVICE_PORT_CONNECT = 7, // Obsolete |
| 92 MESSAGE = 8, | 92 MESSAGE = 8, |
| 93 NOTIFICATION_CLOSE = 9, | 93 NOTIFICATION_CLOSE = 9, |
| 94 FETCH_MAIN_FRAME = 10, | 94 FETCH_MAIN_FRAME = 10, |
| 95 FETCH_SUB_FRAME = 11, | 95 FETCH_SUB_FRAME = 11, |
| 96 FETCH_SHARED_WORKER = 12, | 96 FETCH_SHARED_WORKER = 12, |
| 97 FETCH_SUB_RESOURCE = 13, | 97 FETCH_SUB_RESOURCE = 13, |
| 98 UNKNOWN = 14, // Used when event type is not known. | 98 UNKNOWN = 14, // Used when event type is not known. |
| 99 FOREIGN_FETCH = 15, | 99 FOREIGN_FETCH = 15, |
| 100 FETCH_WAITUNTIL = 16, |
| 100 // Add new events to record here. | 101 // Add new events to record here. |
| 101 NUM_TYPES | 102 NUM_TYPES |
| 102 }; | 103 }; |
| 103 | 104 |
| 104 // Used for UMA. Append only. | 105 // Used for UMA. Append only. |
| 105 enum class Site { | 106 enum class Site { |
| 106 OTHER, // Obsolete | 107 OTHER, // Obsolete |
| 107 NEW_TAB_PAGE, | 108 NEW_TAB_PAGE, |
| 108 WITH_FETCH_HANDLER, | 109 WITH_FETCH_HANDLER, |
| 109 WITHOUT_FETCH_HANDLER, | 110 WITHOUT_FETCH_HANDLER, |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 static void RecordStartStatusAfterFailure(int failure_count, | 241 static void RecordStartStatusAfterFailure(int failure_count, |
| 241 ServiceWorkerStatusCode status); | 242 ServiceWorkerStatusCode status); |
| 242 | 243 |
| 243 private: | 244 private: |
| 244 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics); | 245 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics); |
| 245 }; | 246 }; |
| 246 | 247 |
| 247 } // namespace content | 248 } // namespace content |
| 248 | 249 |
| 249 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ | 250 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ |
| OLD | NEW |