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

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

Issue 1924543002: [page_load_metrics] use data from WebContents::GetOpener (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@just_gws_aborts
Patch Set: final review 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
« no previous file with comments | « components/page_load_metrics/browser/metrics_web_contents_observer.cc ('k') | no next file » | 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_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"
11 #include "url/gurl.h" 11 #include "url/gurl.h"
12 12
13 namespace page_load_metrics { 13 namespace page_load_metrics {
14 14
15 class PageLoadMetricsObservable;
16
17 // This enum represents how a page load ends. If the action occurs before the 15 // This enum represents how a page load ends. If the action occurs before the
18 // page load finishes (or reaches some point like first paint), then we consider 16 // page load finishes (or reaches some point like first paint), then we consider
19 // the load to be aborted. 17 // the load to be aborted.
20 enum UserAbortType { 18 enum UserAbortType {
21 // Represents no abort. 19 // Represents no abort.
22 ABORT_NONE, 20 ABORT_NONE,
23 21
24 // If the user presses reload or shift-reload. 22 // If the user presses reload or shift-reload.
25 ABORT_RELOAD, 23 ABORT_RELOAD,
26 24
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // data collected over the course of the page load. If the load did not 132 // data collected over the course of the page load. If the load did not
135 // receive any timing information, |timing.IsEmpty()| will be true. 133 // receive any timing information, |timing.IsEmpty()| will be true.
136 // After this call, the object will be deleted. 134 // After this call, the object will be deleted.
137 virtual void OnComplete(const PageLoadTiming& timing, 135 virtual void OnComplete(const PageLoadTiming& timing,
138 const PageLoadExtraInfo& extra_info) {} 136 const PageLoadExtraInfo& extra_info) {}
139 }; 137 };
140 138
141 } // namespace page_load_metrics 139 } // namespace page_load_metrics
142 140
143 #endif // COMPONENTS_PAGE_LOAD_METRICS_BROWSER_PAGE_LOAD_METRICS_OBSERVER_H_ 141 #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') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698