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

Side by Side Diff: components/page_load_metrics/browser/metrics_web_contents_observer.h

Issue 1473443002: Bucket FirstContentfulPaint timing into High/Low res clock buckets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge histogram suffixes Created 5 years 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 | components/page_load_metrics/browser/metrics_web_contents_observer.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_PAGE_LOAD_METRICS_BROWSER_PAGE_LOAD_METRICS_WEB_CONTENTS_OBSE RVER_H_ 5 #ifndef COMPONENTS_PAGE_LOAD_METRICS_BROWSER_PAGE_LOAD_METRICS_WEB_CONTENTS_OBSE RVER_H_
6 #define COMPONENTS_PAGE_LOAD_METRICS_BROWSER_PAGE_LOAD_METRICS_WEB_CONTENTS_OBSE RVER_H_ 6 #define COMPONENTS_PAGE_LOAD_METRICS_BROWSER_PAGE_LOAD_METRICS_WEB_CONTENTS_OBSE RVER_H_
7 7
8 #include "base/containers/scoped_ptr_map.h" 8 #include "base/containers/scoped_ptr_map.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 "PageLoad.Timing2.NavigationToDOMContentLoadedEventFired.Background"; 53 "PageLoad.Timing2.NavigationToDOMContentLoadedEventFired.Background";
54 const char kBackgroundHistogramLoad[] = 54 const char kBackgroundHistogramLoad[] =
55 "PageLoad.Timing2.NavigationToLoadEventFired.Background"; 55 "PageLoad.Timing2.NavigationToLoadEventFired.Background";
56 const char kBackgroundHistogramFirstPaint[] = 56 const char kBackgroundHistogramFirstPaint[] =
57 "PageLoad.Timing2.NavigationToFirstPaint.Background"; 57 "PageLoad.Timing2.NavigationToFirstPaint.Background";
58 const char kBackgroundHistogramFirstImagePaint[] = 58 const char kBackgroundHistogramFirstImagePaint[] =
59 "PageLoad.Timing2.NavigationToFirstImagePaint.Background."; 59 "PageLoad.Timing2.NavigationToFirstImagePaint.Background.";
60 const char kBackgroundHistogramFirstContentfulPaint[] = 60 const char kBackgroundHistogramFirstContentfulPaint[] =
61 "PageLoad.Timing2.NavigationToFirstContentfulPaint.Background"; 61 "PageLoad.Timing2.NavigationToFirstContentfulPaint.Background";
62 62
63 const char kHistogramFirstContentfulPaintHigh[] =
64 "PageLoad.Timing2.NavigationToFirstContentfulPaint.HighResolutionClock";
65 const char kHistogramFirstContentfulPaintLow[] =
66 "PageLoad.Timing2.NavigationToFirstContentfulPaint.LowResolutionClock";
67
63 const char kHistogramFirstBackground[] = 68 const char kHistogramFirstBackground[] =
64 "PageLoad.Timing2.NavigationToFirstBackground"; 69 "PageLoad.Timing2.NavigationToFirstBackground";
65 const char kHistogramFirstForeground[] = 70 const char kHistogramFirstForeground[] =
66 "PageLoad.Timing2.NavigationToFirstForeground"; 71 "PageLoad.Timing2.NavigationToFirstForeground";
67 72
68 const char kProvisionalEvents[] = "PageLoad.Events.Provisional"; 73 const char kProvisionalEvents[] = "PageLoad.Events.Provisional";
69 const char kCommittedEvents[] = "PageLoad.Events.Committed"; 74 const char kCommittedEvents[] = "PageLoad.Events.Committed";
70 const char kBackgroundProvisionalEvents[] = 75 const char kBackgroundProvisionalEvents[] =
71 "PageLoad.Events.Provisional.Background"; 76 "PageLoad.Events.Provisional.Background";
72 const char kBackgroundCommittedEvents[] = 77 const char kBackgroundCommittedEvents[] =
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 301
297 scoped_ptr<PageLoadMetricsEmbedderInterface> embedder_interface_; 302 scoped_ptr<PageLoadMetricsEmbedderInterface> embedder_interface_;
298 base::ObserverList<PageLoadMetricsObserver, true> observers_; 303 base::ObserverList<PageLoadMetricsObserver, true> observers_;
299 304
300 DISALLOW_COPY_AND_ASSIGN(MetricsWebContentsObserver); 305 DISALLOW_COPY_AND_ASSIGN(MetricsWebContentsObserver);
301 }; 306 };
302 307
303 } // namespace page_load_metrics 308 } // namespace page_load_metrics
304 309
305 #endif // COMPONENTS_PAGE_LOAD_METRICS_BROWSER_PAGE_LOAD_METRICS_WEB_CONTENTS_O BSERVER_H_ 310 #endif // COMPONENTS_PAGE_LOAD_METRICS_BROWSER_PAGE_LOAD_METRICS_WEB_CONTENTS_O BSERVER_H_
OLDNEW
« no previous file with comments | « no previous file | components/page_load_metrics/browser/metrics_web_contents_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698