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, |
109 // Add new events to record here. | 112 // Add new events to record here. |
110 NUM_TYPES | 113 NUM_TYPES |
111 }; | 114 }; |
112 | 115 |
113 // Used for UMA. Append only. | 116 // Used for UMA. Append only. |
114 enum class Site { | 117 enum class Site { |
115 OTHER, // Obsolete | 118 OTHER, // Obsolete |
116 NEW_TAB_PAGE, | 119 NEW_TAB_PAGE, |
117 WITH_FETCH_HANDLER, | 120 WITH_FETCH_HANDLER, |
118 WITHOUT_FETCH_HANDLER, | 121 WITHOUT_FETCH_HANDLER, |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 static void RecordStartStatusAfterFailure(int failure_count, | 252 static void RecordStartStatusAfterFailure(int failure_count, |
250 ServiceWorkerStatusCode status); | 253 ServiceWorkerStatusCode status); |
251 | 254 |
252 private: | 255 private: |
253 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics); | 256 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics); |
254 }; | 257 }; |
255 | 258 |
256 } // namespace content | 259 } // namespace content |
257 | 260 |
258 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ | 261 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ |
OLD | NEW |