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

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

Issue 2249063004: Add first party sites (PLUS, INBOX, DOCS) in ServiceWorkerSite UMA. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporated mpearson@'s comment Created 4 years, 4 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
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_metrics.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 NUM_TYPES 113 NUM_TYPES
114 }; 114 };
115 115
116 // Used for UMA. Append only. 116 // Used for UMA. Append only.
117 enum class Site { 117 enum class Site {
118 OTHER, // Obsolete for UMA. Use WITH_FETCH_HANDLER or 118 OTHER, // Obsolete for UMA. Use WITH_FETCH_HANDLER or
119 // WITHOUT_FETCH_HANDLER. 119 // WITHOUT_FETCH_HANDLER.
120 NEW_TAB_PAGE, 120 NEW_TAB_PAGE,
121 WITH_FETCH_HANDLER, 121 WITH_FETCH_HANDLER,
122 WITHOUT_FETCH_HANDLER, 122 WITHOUT_FETCH_HANDLER,
123 PLUS,
124 INBOX,
125 DOCS,
123 NUM_TYPES 126 NUM_TYPES
124 }; 127 };
125 128
126 // Not used for UMA. 129 // Not used for UMA.
127 enum class StartSituation { 130 enum class StartSituation {
128 UNKNOWN, 131 UNKNOWN,
129 DURING_STARTUP, 132 DURING_STARTUP,
130 EXISTING_PROCESS, 133 EXISTING_PROCESS,
131 NEW_PROCESS 134 NEW_PROCESS
132 }; 135 };
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 static void RecordStartStatusAfterFailure(int failure_count, 271 static void RecordStartStatusAfterFailure(int failure_count,
269 ServiceWorkerStatusCode status); 272 ServiceWorkerStatusCode status);
270 273
271 private: 274 private:
272 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics); 275 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics);
273 }; 276 };
274 277
275 } // namespace content 278 } // namespace content
276 279
277 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ 280 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698