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

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

Issue 1921503003: service worker: Add UMA for start status grouped by start purpose. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add more comment Created 4 years, 8 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 DETACH_BY_REGISTRY, 73 DETACH_BY_REGISTRY,
74 TIMEOUT, 74 TIMEOUT,
75 // Add new types here. 75 // Add new types here.
76 NUM_TYPES 76 NUM_TYPES
77 }; 77 };
78 78
79 // Used for UMA. Append-only. 79 // Used for UMA. Append-only.
80 enum class EventType { 80 enum class EventType {
81 ACTIVATE = 0, 81 ACTIVATE = 0,
82 INSTALL = 1, 82 INSTALL = 1,
83 DEPRECATED_FETCH = 2, // Deprecated, use a more specific FETCH_ type. 83 // DEPRECATED_FETCH = 2,
84 SYNC = 3, 84 SYNC = 3,
85 NOTIFICATION_CLICK = 4, 85 NOTIFICATION_CLICK = 4,
86 PUSH = 5, 86 PUSH = 5,
87 GEOFENCING = 6, 87 GEOFENCING = 6,
88 // SERVICE_PORT_CONNECT = 7, 88 // SERVICE_PORT_CONNECT = 7,
nhiroki 2016/04/26 06:05:20 DEPRECATED_SERVICE_PORT_CONNECT?
falken 2016/04/26 06:11:20 Right, I guess it should be consistent with above.
89 MESSAGE = 8, 89 MESSAGE = 8,
90 NOTIFICATION_CLOSE = 9, 90 NOTIFICATION_CLOSE = 9,
91 FETCH_MAIN_FRAME = 10, 91 FETCH_MAIN_FRAME = 10,
92 FETCH_SUB_FRAME = 11, 92 FETCH_SUB_FRAME = 11,
93 FETCH_SHARED_WORKER = 12, 93 FETCH_SHARED_WORKER = 12,
94 FETCH_SUB_RESOURCE = 13, 94 FETCH_SUB_RESOURCE = 13,
95 UNKNOWN = 14, // Used when event type is not known. 95 UNKNOWN = 14, // Used when event type is not known.
96 FOREIGN_FETCH = 15, 96 FOREIGN_FETCH = 15,
97 // Add new events to record here. 97 // Add new events to record here.
98 NUM_TYPES 98 NUM_TYPES
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 static void RecordStartStatusAfterFailure(int failure_count, 220 static void RecordStartStatusAfterFailure(int failure_count,
221 ServiceWorkerStatusCode status); 221 ServiceWorkerStatusCode status);
222 222
223 private: 223 private:
224 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics); 224 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics);
225 }; 225 };
226 226
227 } // namespace content 227 } // namespace content
228 228
229 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ 229 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_metrics.cc » ('j') | tools/metrics/histograms/histograms.xml » ('J')

Powered by Google App Engine
This is Rietveld 408576698