| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 // Used for UMA. Append-only. | 79 // Used for UMA. Append-only. |
| 80 enum class EventType { | 80 enum class EventType { |
| 81 ACTIVATE = 0, | 81 ACTIVATE = 0, |
| 82 INSTALL = 1, | 82 INSTALL = 1, |
| 83 // FETCH = 2, // Obsolete | 83 // FETCH = 2, // Obsolete |
| 84 SYNC = 3, | 84 SYNC = 3, |
| 85 NOTIFICATION_CLICK = 4, | 85 NOTIFICATION_CLICK = 4, |
| 86 PUSH = 5, | 86 PUSH = 5, |
| 87 GEOFENCING = 6, | 87 // GEOFENCING = 6, // Obsolete |
| 88 // SERVICE_PORT_CONNECT = 7, // Obsolete | 88 // SERVICE_PORT_CONNECT = 7, // Obsolete |
| 89 MESSAGE = 8, | 89 MESSAGE = 8, |
| 90 NOTIFICATION_CLOSE = 9, | 90 NOTIFICATION_CLOSE = 9, |
| 91 FETCH_MAIN_FRAME = 10, | 91 FETCH_MAIN_FRAME = 10, |
| 92 FETCH_SUB_FRAME = 11, | 92 FETCH_SUB_FRAME = 11, |
| 93 FETCH_SHARED_WORKER = 12, | 93 FETCH_SHARED_WORKER = 12, |
| 94 FETCH_SUB_RESOURCE = 13, | 94 FETCH_SUB_RESOURCE = 13, |
| 95 UNKNOWN = 14, // Used when event type is not known. | 95 UNKNOWN = 14, // Used when event type is not known. |
| 96 FOREIGN_FETCH = 15, | 96 FOREIGN_FETCH = 15, |
| 97 // Add new events to record here. | 97 // Add new events to record here. |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 static void RecordStartStatusAfterFailure(int failure_count, | 220 static void RecordStartStatusAfterFailure(int failure_count, |
| 221 ServiceWorkerStatusCode status); | 221 ServiceWorkerStatusCode status); |
| 222 | 222 |
| 223 private: | 223 private: |
| 224 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics); | 224 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics); |
| 225 }; | 225 }; |
| 226 | 226 |
| 227 } // namespace content | 227 } // namespace content |
| 228 | 228 |
| 229 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ | 229 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ |
| OLD | NEW |