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

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

Issue 1619703002: Implement notificationclose event (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 4 years, 10 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 enum class EventType { 76 enum class EventType {
77 ACTIVATE, 77 ACTIVATE,
78 INSTALL, 78 INSTALL,
79 FETCH, 79 FETCH,
80 SYNC, 80 SYNC,
81 NOTIFICATION_CLICK, 81 NOTIFICATION_CLICK,
82 PUSH, 82 PUSH,
83 GEOFENCING, 83 GEOFENCING,
84 SERVICE_PORT_CONNECT, 84 SERVICE_PORT_CONNECT,
85 MESSAGE, 85 MESSAGE,
86 NOTIFICATION_CLOSE,
86 // Add new events to record here. 87 // Add new events to record here.
87 88
88 NUM_TYPES 89 NUM_TYPES
89 }; 90 };
90 91
91 // Used for UMA. Append only. 92 // Used for UMA. Append only.
92 enum class Site { OTHER, NEW_TAB_PAGE, NUM_TYPES }; 93 enum class Site { OTHER, NEW_TAB_PAGE, NUM_TYPES };
93 94
94 // Excludes NTP scope from UMA for now as it tends to dominate the stats and 95 // Excludes NTP scope from UMA for now as it tends to dominate the stats and
95 // makes the results largely skewed. Some metrics don't follow this policy 96 // makes the results largely skewed. Some metrics don't follow this policy
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // previous event ended). 175 // previous event ended).
175 static void RecordTimeBetweenEvents(const base::TimeDelta& time); 176 static void RecordTimeBetweenEvents(const base::TimeDelta& time);
176 177
177 private: 178 private:
178 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics); 179 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics);
179 }; 180 };
180 181
181 } // namespace content 182 } // namespace content
182 183
183 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ 184 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698