| 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 // NAVIGATION_HINT_LINK_TAP_UNCONFIRMED = 19, // Obsolete | 115 // NAVIGATION_HINT_LINK_TAP_UNCONFIRMED = 19, // Obsolete |
| 116 // NAVIGATION_HINT_LINK_TAP_DOWN = 20, // Obsolete | 116 // NAVIGATION_HINT_LINK_TAP_DOWN = 20, // Obsolete |
| 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, | 123 BACKGROUND_FETCH_FAIL = 25, |
| 124 BACKGROUND_FETCHED = 26, | 124 BACKGROUND_FETCHED = 26, |
| 125 PRECONNECT = 27, |
| 125 // Add new events to record here. | 126 // Add new events to record here. |
| 126 NUM_TYPES | 127 NUM_TYPES |
| 127 }; | 128 }; |
| 128 | 129 |
| 129 // Used for UMA. Append only. | 130 // Used for UMA. Append only. |
| 130 enum class Site { | 131 enum class Site { |
| 131 OTHER, // Obsolete for UMA. Use WITH_FETCH_HANDLER or | 132 OTHER, // Obsolete for UMA. Use WITH_FETCH_HANDLER or |
| 132 // WITHOUT_FETCH_HANDLER. | 133 // WITHOUT_FETCH_HANDLER. |
| 133 NEW_TAB_PAGE, | 134 NEW_TAB_PAGE, |
| 134 WITH_FETCH_HANDLER, | 135 WITH_FETCH_HANDLER, |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 | 353 |
| 353 static void RecordRuntime(base::TimeDelta time); | 354 static void RecordRuntime(base::TimeDelta time); |
| 354 | 355 |
| 355 private: | 356 private: |
| 356 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics); | 357 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics); |
| 357 }; | 358 }; |
| 358 | 359 |
| 359 } // namespace content | 360 } // namespace content |
| 360 | 361 |
| 361 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ | 362 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ |
| OLD | NEW |