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 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 FOREIGN_FETCH_WAITUNTIL = 17, | 113 FOREIGN_FETCH_WAITUNTIL = 17, |
114 NAVIGATION_HINT_LINK_MOUSE_DOWN = 18, | 114 NAVIGATION_HINT_LINK_MOUSE_DOWN = 18, |
115 NAVIGATION_HINT_LINK_TAP_UNCONFIRMED = 19, | 115 NAVIGATION_HINT_LINK_TAP_UNCONFIRMED = 19, |
116 NAVIGATION_HINT_LINK_TAP_DOWN = 20, | 116 NAVIGATION_HINT_LINK_TAP_DOWN = 20, |
117 // Used when external consumers want to add a request to | 117 // Used when external consumers want to add a request to |
118 // ServiceWorkerVersion to keep it alive. | 118 // ServiceWorkerVersion to keep it alive. |
119 EXTERNAL_REQUEST = 21, | 119 EXTERNAL_REQUEST = 21, |
120 PAYMENT_REQUEST = 22, | 120 PAYMENT_REQUEST = 22, |
121 BACKGROUND_FETCH_ABORT = 23, | 121 BACKGROUND_FETCH_ABORT = 23, |
122 BACKGROUND_FETCH_CLICK = 24, | 122 BACKGROUND_FETCH_CLICK = 24, |
| 123 BACKGROUND_FETCH_FAIL = 25, |
| 124 BACKGROUND_FETCHED = 26, |
123 // Add new events to record here. | 125 // Add new events to record here. |
124 NUM_TYPES | 126 NUM_TYPES |
125 }; | 127 }; |
126 | 128 |
127 // Used for UMA. Append only. | 129 // Used for UMA. Append only. |
128 enum class Site { | 130 enum class Site { |
129 OTHER, // Obsolete for UMA. Use WITH_FETCH_HANDLER or | 131 OTHER, // Obsolete for UMA. Use WITH_FETCH_HANDLER or |
130 // WITHOUT_FETCH_HANDLER. | 132 // WITHOUT_FETCH_HANDLER. |
131 NEW_TAB_PAGE, | 133 NEW_TAB_PAGE, |
132 WITH_FETCH_HANDLER, | 134 WITH_FETCH_HANDLER, |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 | 360 |
359 static void RecordRuntime(base::TimeDelta time); | 361 static void RecordRuntime(base::TimeDelta time); |
360 | 362 |
361 private: | 363 private: |
362 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics); | 364 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics); |
363 }; | 365 }; |
364 | 366 |
365 } // namespace content | 367 } // namespace content |
366 | 368 |
367 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ | 369 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ |
OLD | NEW |