Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(594)

Side by Side Diff: content/browser/service_worker/service_worker_metrics.h

Issue 2034663002: ServiceWorker: Keep the worker alive until FetchEvent.waitUntil settles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // GEOFENCING = 6, // Obsolete 90 // GEOFENCING = 6, // Obsolete
91 // SERVICE_PORT_CONNECT = 7, // Obsolete 91 // SERVICE_PORT_CONNECT = 7, // Obsolete
92 MESSAGE = 8, 92 MESSAGE = 8,
93 NOTIFICATION_CLOSE = 9, 93 NOTIFICATION_CLOSE = 9,
94 FETCH_MAIN_FRAME = 10, 94 FETCH_MAIN_FRAME = 10,
95 FETCH_SUB_FRAME = 11, 95 FETCH_SUB_FRAME = 11,
96 FETCH_SHARED_WORKER = 12, 96 FETCH_SHARED_WORKER = 12,
97 FETCH_SUB_RESOURCE = 13, 97 FETCH_SUB_RESOURCE = 13,
98 UNKNOWN = 14, // Used when event type is not known. 98 UNKNOWN = 14, // Used when event type is not known.
99 FOREIGN_FETCH = 15, 99 FOREIGN_FETCH = 15,
100 FETCH_WAITUNTIL = 16,
100 // Add new events to record here. 101 // Add new events to record here.
101 NUM_TYPES 102 NUM_TYPES
102 }; 103 };
103 104
104 // Used for UMA. Append only. 105 // Used for UMA. Append only.
105 enum class Site { 106 enum class Site {
106 OTHER, // Obsolete 107 OTHER, // Obsolete
107 NEW_TAB_PAGE, 108 NEW_TAB_PAGE,
108 WITH_FETCH_HANDLER, 109 WITH_FETCH_HANDLER,
109 WITHOUT_FETCH_HANDLER, 110 WITHOUT_FETCH_HANDLER,
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 static void RecordStartStatusAfterFailure(int failure_count, 241 static void RecordStartStatusAfterFailure(int failure_count,
241 ServiceWorkerStatusCode status); 242 ServiceWorkerStatusCode status);
242 243
243 private: 244 private:
244 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics); 245 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics);
245 }; 246 };
246 247
247 } // namespace content 248 } // namespace content
248 249
249 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ 250 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698