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

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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // GEOFENCING = 6, // Obsolete 88 // GEOFENCING = 6, // Obsolete
89 // SERVICE_PORT_CONNECT = 7, // Obsolete 89 // SERVICE_PORT_CONNECT = 7, // Obsolete
90 MESSAGE = 8, 90 MESSAGE = 8,
91 NOTIFICATION_CLOSE = 9, 91 NOTIFICATION_CLOSE = 9,
92 FETCH_MAIN_FRAME = 10, 92 FETCH_MAIN_FRAME = 10,
93 FETCH_SUB_FRAME = 11, 93 FETCH_SUB_FRAME = 11,
94 FETCH_SHARED_WORKER = 12, 94 FETCH_SHARED_WORKER = 12,
95 FETCH_SUB_RESOURCE = 13, 95 FETCH_SUB_RESOURCE = 13,
96 UNKNOWN = 14, // Used when event type is not known. 96 UNKNOWN = 14, // Used when event type is not known.
97 FOREIGN_FETCH = 15, 97 FOREIGN_FETCH = 15,
98 FETCH_WAITUNTIL = 16,
falken 2016/06/09 19:28:48 It's unfortunate that WAITUNTIL is not an "event"
shimazu 2016/06/10 10:26:49 Yes, I know. Hmm, I don't have good name now. It'
falken 2016/06/16 06:23:09 I don't think it's so odd, since StartWorker itsel
shimazu 2016/06/21 02:43:37 Done.
98 // Add new events to record here. 99 // Add new events to record here.
99 NUM_TYPES 100 NUM_TYPES
100 }; 101 };
101 102
102 // Used for UMA. Append only. 103 // Used for UMA. Append only.
103 enum class Site { 104 enum class Site {
104 OTHER, // Obsolete 105 OTHER, // Obsolete
105 NEW_TAB_PAGE, 106 NEW_TAB_PAGE,
106 WITH_FETCH_HANDLER, 107 WITH_FETCH_HANDLER,
107 WITHOUT_FETCH_HANDLER, 108 WITHOUT_FETCH_HANDLER,
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 static void RecordStartStatusAfterFailure(int failure_count, 232 static void RecordStartStatusAfterFailure(int failure_count,
232 ServiceWorkerStatusCode status); 233 ServiceWorkerStatusCode status);
233 234
234 private: 235 private:
235 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics); 236 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics);
236 }; 237 };
237 238
238 } // namespace content 239 } // namespace content
239 240
240 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ 241 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698