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

Side by Side Diff: chrome/browser/page_load_metrics/page_load_metrics_observer.cc

Issue 2223453003: Thread user gesture through page_load_metrics abort pipeline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: thread user gesture through page_load_metrics Created 4 years, 4 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 #include "chrome/browser/page_load_metrics/page_load_metrics_observer.h" 5 #include "chrome/browser/page_load_metrics/page_load_metrics_observer.h"
6 6
7 namespace page_load_metrics { 7 namespace page_load_metrics {
8 8
9 PageLoadExtraInfo::PageLoadExtraInfo( 9 PageLoadExtraInfo::PageLoadExtraInfo(
10 const base::Optional<base::TimeDelta>& first_background_time, 10 const base::Optional<base::TimeDelta>& first_background_time,
11 const base::Optional<base::TimeDelta>& first_foreground_time, 11 const base::Optional<base::TimeDelta>& first_foreground_time,
12 bool started_in_foreground, 12 bool started_in_foreground,
13 bool user_gesture,
13 const GURL& committed_url, 14 const GURL& committed_url,
14 const base::Optional<base::TimeDelta>& time_to_commit, 15 const base::Optional<base::TimeDelta>& time_to_commit,
15 UserAbortType abort_type, 16 UserAbortType abort_type,
17 bool abort_user_initiated,
16 const base::Optional<base::TimeDelta>& time_to_abort, 18 const base::Optional<base::TimeDelta>& time_to_abort,
17 const PageLoadMetadata& metadata) 19 const PageLoadMetadata& metadata)
18 : first_background_time(first_background_time), 20 : first_background_time(first_background_time),
19 first_foreground_time(first_foreground_time), 21 first_foreground_time(first_foreground_time),
20 started_in_foreground(started_in_foreground), 22 started_in_foreground(started_in_foreground),
23 user_gesture(user_gesture),
21 committed_url(committed_url), 24 committed_url(committed_url),
22 time_to_commit(time_to_commit), 25 time_to_commit(time_to_commit),
23 abort_type(abort_type), 26 abort_type(abort_type),
27 abort_user_initiated(abort_user_initiated),
24 time_to_abort(time_to_abort), 28 time_to_abort(time_to_abort),
25 metadata(metadata) {} 29 metadata(metadata) {}
26 30
27 PageLoadExtraInfo::PageLoadExtraInfo(const PageLoadExtraInfo& other) = default; 31 PageLoadExtraInfo::PageLoadExtraInfo(const PageLoadExtraInfo& other) = default;
28 32
29 PageLoadExtraInfo::~PageLoadExtraInfo() {} 33 PageLoadExtraInfo::~PageLoadExtraInfo() {}
30 34
31 FailedProvisionalLoadInfo::FailedProvisionalLoadInfo(base::TimeDelta interval, 35 FailedProvisionalLoadInfo::FailedProvisionalLoadInfo(base::TimeDelta interval,
32 net::Error error) 36 net::Error error)
33 : time_to_failed_provisional_load(interval), error(error) {} 37 : time_to_failed_provisional_load(interval), error(error) {}
34 38
35 FailedProvisionalLoadInfo::~FailedProvisionalLoadInfo() {} 39 FailedProvisionalLoadInfo::~FailedProvisionalLoadInfo() {}
36 40
37 } // namespace page_load_metrics 41 } // namespace page_load_metrics
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698