| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 MESSAGE = 8, | 99 MESSAGE = 8, |
| 100 NOTIFICATION_CLOSE = 9, | 100 NOTIFICATION_CLOSE = 9, |
| 101 FETCH_MAIN_FRAME = 10, | 101 FETCH_MAIN_FRAME = 10, |
| 102 FETCH_SUB_FRAME = 11, | 102 FETCH_SUB_FRAME = 11, |
| 103 FETCH_SHARED_WORKER = 12, | 103 FETCH_SHARED_WORKER = 12, |
| 104 FETCH_SUB_RESOURCE = 13, | 104 FETCH_SUB_RESOURCE = 13, |
| 105 UNKNOWN = 14, // Used when event type is not known. | 105 UNKNOWN = 14, // Used when event type is not known. |
| 106 FOREIGN_FETCH = 15, | 106 FOREIGN_FETCH = 15, |
| 107 FETCH_WAITUNTIL = 16, | 107 FETCH_WAITUNTIL = 16, |
| 108 FOREIGN_FETCH_WAITUNTIL = 17, | 108 FOREIGN_FETCH_WAITUNTIL = 17, |
| 109 NAVIGATION_HINT_LINK_MOUSE_DOWN = 18, | |
| 110 NAVIGATION_HINT_LINK_TAP_UNCONFIRMED = 19, | |
| 111 NAVIGATION_HINT_LINK_TAP_DOWN = 20, | |
| 112 // Add new events to record here. | 109 // Add new events to record here. |
| 113 NUM_TYPES | 110 NUM_TYPES |
| 114 }; | 111 }; |
| 115 | 112 |
| 116 // Used for UMA. Append only. | 113 // Used for UMA. Append only. |
| 117 enum class Site { | 114 enum class Site { |
| 118 OTHER, // Obsolete | 115 OTHER, // Obsolete |
| 119 NEW_TAB_PAGE, | 116 NEW_TAB_PAGE, |
| 120 WITH_FETCH_HANDLER, | 117 WITH_FETCH_HANDLER, |
| 121 WITHOUT_FETCH_HANDLER, | 118 WITHOUT_FETCH_HANDLER, |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 static void RecordStartStatusAfterFailure(int failure_count, | 249 static void RecordStartStatusAfterFailure(int failure_count, |
| 253 ServiceWorkerStatusCode status); | 250 ServiceWorkerStatusCode status); |
| 254 | 251 |
| 255 private: | 252 private: |
| 256 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics); | 253 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics); |
| 257 }; | 254 }; |
| 258 | 255 |
| 259 } // namespace content | 256 } // namespace content |
| 260 | 257 |
| 261 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ | 258 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ |
| OLD | NEW |