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

Side by Side Diff: third_party/WebKit/public/platform/WebLoadingBehaviorFlag.h

Issue 1871393002: Add NavigationToFirstContentfulPaint UMA for ServiceWorker controlled pages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: diff from https://codereview.chromium.org/1857443002/#ps110001 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 WebLoadingBehaviorFlag_h 5 #ifndef WebLoadingBehaviorFlag_h
6 #define WebLoadingBehaviorFlag_h 6 #define WebLoadingBehaviorFlag_h
7 7
8 namespace blink { 8 namespace blink {
9 9
10 // This enum tracks certain behavior Blink exhibits when loading a page. This is 10 // This enum tracks certain behavior Blink exhibits when loading a page. This is
11 // for use in metrics collection by the loading team, to evaluate experimental 11 // for use in metrics collection by the loading team, to evaluate experimental
12 // features and potential areas of improvement in the loading stack. The main 12 // features and potential areas of improvement in the loading stack. The main
13 // consumer is the page_load_metrics component, which sends bit flags to the 13 // consumer is the page_load_metrics component, which sends bit flags to the
14 // browser process for histogram splitting. 14 // browser process for histogram splitting.
15 enum WebLoadingBehaviorFlag { 15 enum WebLoadingBehaviorFlag {
16 WebLoadingBehaviorNone = 0, 16 WebLoadingBehaviorNone = 0,
17 WebLoadingBehaviorDocumentWriteEvaluator = 1 << 0, 17 WebLoadingBehaviorDocumentWriteEvaluator = 1 << 0,
18 WebLoadingBehaviorServiceWorkerControlled = 1 << 1,
kinuko 2016/04/13 08:39:28 nit: in general we'd better have a short comment f
horo 2016/04/14 02:19:13 Done.
18 }; 19 };
19 20
20 } // namespace blink 21 } // namespace blink
21 22
22 #endif // WebLoadingBehaviorFlag_h 23 #endif // WebLoadingBehaviorFlag_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698