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

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

Issue 2748213003: Service Worker event dispatcher for Background Fetch (Closed)
Patch Set: uma fix Created 3 years, 9 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 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 FOREIGN_FETCH = 15, 111 FOREIGN_FETCH = 15,
112 FETCH_WAITUNTIL = 16, 112 FETCH_WAITUNTIL = 16,
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,
122 BACKGROUND_FETCH_CLICK = 24,
121 // Add new events to record here. 123 // Add new events to record here.
122 NUM_TYPES 124 NUM_TYPES
123 }; 125 };
124 126
125 // Used for UMA. Append only. 127 // Used for UMA. Append only.
126 enum class Site { 128 enum class Site {
127 OTHER, // Obsolete for UMA. Use WITH_FETCH_HANDLER or 129 OTHER, // Obsolete for UMA. Use WITH_FETCH_HANDLER or
128 // WITHOUT_FETCH_HANDLER. 130 // WITHOUT_FETCH_HANDLER.
129 NEW_TAB_PAGE, 131 NEW_TAB_PAGE,
130 WITH_FETCH_HANDLER, 132 WITH_FETCH_HANDLER,
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 358
357 static void RecordRuntime(base::TimeDelta time); 359 static void RecordRuntime(base::TimeDelta time);
358 360
359 private: 361 private:
360 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics); 362 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics);
361 }; 363 };
362 364
363 } // namespace content 365 } // namespace content
364 366
365 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ 367 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698