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

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

Issue 2626943002: Add ServiceWorker.NavigationPreload.HeaderSize UMA (Closed)
Patch Set: incorporated falken's comment Created 3 years, 11 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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 279
280 static const char* LoadSourceToString(LoadSource source); 280 static const char* LoadSourceToString(LoadSource source);
281 static StartSituation GetStartSituation(bool is_browser_startup_complete, 281 static StartSituation GetStartSituation(bool is_browser_startup_complete,
282 bool is_new_process); 282 bool is_new_process);
283 283
284 // Records the result of a start attempt that occurred after the worker had 284 // Records the result of a start attempt that occurred after the worker had
285 // failed |failure_count| consecutive times. 285 // failed |failure_count| consecutive times.
286 static void RecordStartStatusAfterFailure(int failure_count, 286 static void RecordStartStatusAfterFailure(int failure_count,
287 ServiceWorkerStatusCode status); 287 ServiceWorkerStatusCode status);
288 288
289 // Records the size of Service-Worker-Navigation-Preload header when the
290 // navigation preload request is to be sent.
291 static void RecordNavigationPreloadRequestHeaderSize(size_t size);
292
289 private: 293 private:
290 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics); 294 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics);
291 }; 295 };
292 296
293 } // namespace content 297 } // namespace content
294 298
295 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ 299 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698