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

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

Issue 2034223002: Add immediate variants of doc.write page load metrics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code comment added. Created 4 years, 6 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 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_OBSERVER_H_ 5 #ifndef COMPONENTS_PAGE_LOAD_METRICS_BROWSER_PAGE_LOAD_METRICS_OBSERVER_H_
6 #define COMPONENTS_PAGE_LOAD_METRICS_BROWSER_PAGE_LOAD_METRICS_OBSERVER_H_ 6 #define COMPONENTS_PAGE_LOAD_METRICS_BROWSER_PAGE_LOAD_METRICS_OBSERVER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/page_load_metrics/common/page_load_timing.h" 9 #include "components/page_load_metrics/common/page_load_timing.h"
10 #include "content/public/browser/navigation_handle.h" 10 #include "content/public/browser/navigation_handle.h"
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 virtual void OnFirstTextPaint(const PageLoadTiming& timing, 172 virtual void OnFirstTextPaint(const PageLoadTiming& timing,
173 const PageLoadExtraInfo& extra_info) {} 173 const PageLoadExtraInfo& extra_info) {}
174 virtual void OnFirstImagePaint(const PageLoadTiming& timing, 174 virtual void OnFirstImagePaint(const PageLoadTiming& timing,
175 const PageLoadExtraInfo& extra_info) {} 175 const PageLoadExtraInfo& extra_info) {}
176 virtual void OnFirstContentfulPaint(const PageLoadTiming& timing, 176 virtual void OnFirstContentfulPaint(const PageLoadTiming& timing,
177 const PageLoadExtraInfo& extra_info) {} 177 const PageLoadExtraInfo& extra_info) {}
178 virtual void OnParseStart(const PageLoadTiming& timing, 178 virtual void OnParseStart(const PageLoadTiming& timing,
179 const PageLoadExtraInfo& extra_info) {} 179 const PageLoadExtraInfo& extra_info) {}
180 virtual void OnParseStop(const PageLoadTiming& timing, 180 virtual void OnParseStop(const PageLoadTiming& timing,
181 const PageLoadExtraInfo& extra_info) {} 181 const PageLoadExtraInfo& extra_info) {}
182
183 // Observer method to be invoked when there is a change in PageLoadMetadata's
184 // behavior_flags.
185 virtual void OnLoadingBehaviorObserved(
186 const page_load_metrics::PageLoadExtraInfo& extra_info) {}
182 }; 187 };
183 188
184 } // namespace page_load_metrics 189 } // namespace page_load_metrics
185 190
186 #endif // COMPONENTS_PAGE_LOAD_METRICS_BROWSER_PAGE_LOAD_METRICS_OBSERVER_H_ 191 #endif // COMPONENTS_PAGE_LOAD_METRICS_BROWSER_PAGE_LOAD_METRICS_OBSERVER_H_
OLDNEW
« no previous file with comments | « components/page_load_metrics/browser/metrics_web_contents_observer.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698