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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
107 UNKNOWN = 14, // Used when event type is not known. | 107 UNKNOWN = 14, // Used when event type is not known. |
108 FOREIGN_FETCH = 15, | 108 FOREIGN_FETCH = 15, |
109 FETCH_WAITUNTIL = 16, | 109 FETCH_WAITUNTIL = 16, |
110 FOREIGN_FETCH_WAITUNTIL = 17, | 110 FOREIGN_FETCH_WAITUNTIL = 17, |
111 NAVIGATION_HINT_LINK_MOUSE_DOWN = 18, | 111 NAVIGATION_HINT_LINK_MOUSE_DOWN = 18, |
112 NAVIGATION_HINT_LINK_TAP_UNCONFIRMED = 19, | 112 NAVIGATION_HINT_LINK_TAP_UNCONFIRMED = 19, |
113 NAVIGATION_HINT_LINK_TAP_DOWN = 20, | 113 NAVIGATION_HINT_LINK_TAP_DOWN = 20, |
114 // Used when external consumers want to add a request to | 114 // Used when external consumers want to add a request to |
115 // ServiceWorkerVersion to keep it alive. | 115 // ServiceWorkerVersion to keep it alive. |
116 EXTERNAL_REQUEST = 21, | 116 EXTERNAL_REQUEST = 21, |
117 PAYMENT_REQUEST = 22, | |
nhiroki
2017/01/12 03:12:38
This enum is used for UMA, so you also need to upd
zino
2017/01/13 16:41:11
Done.
| |
117 // Add new events to record here. | 118 // Add new events to record here. |
118 NUM_TYPES | 119 NUM_TYPES |
119 }; | 120 }; |
120 | 121 |
121 // Used for UMA. Append only. | 122 // Used for UMA. Append only. |
122 enum class Site { | 123 enum class Site { |
123 OTHER, // Obsolete for UMA. Use WITH_FETCH_HANDLER or | 124 OTHER, // Obsolete for UMA. Use WITH_FETCH_HANDLER or |
124 // WITHOUT_FETCH_HANDLER. | 125 // WITHOUT_FETCH_HANDLER. |
125 NEW_TAB_PAGE, | 126 NEW_TAB_PAGE, |
126 WITH_FETCH_HANDLER, | 127 WITH_FETCH_HANDLER, |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
285 static void RecordStartStatusAfterFailure(int failure_count, | 286 static void RecordStartStatusAfterFailure(int failure_count, |
286 ServiceWorkerStatusCode status); | 287 ServiceWorkerStatusCode status); |
287 | 288 |
288 private: | 289 private: |
289 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics); | 290 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics); |
290 }; | 291 }; |
291 | 292 |
292 } // namespace content | 293 } // namespace content |
293 | 294 |
294 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ | 295 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ |
OLD | NEW |