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

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

Issue 2321083002: [NoStatePrefetch] Add performance histograms. (Closed)
Patch Set: Review comments Created 4 years, 3 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 bool user_gesture,
14 const GURL& committed_url, 14 const GURL& committed_url,
15 const GURL& start_url,
15 const base::Optional<base::TimeDelta>& time_to_commit, 16 const base::Optional<base::TimeDelta>& time_to_commit,
16 UserAbortType abort_type, 17 UserAbortType abort_type,
17 bool abort_user_initiated, 18 bool abort_user_initiated,
18 const base::Optional<base::TimeDelta>& time_to_abort, 19 const base::Optional<base::TimeDelta>& time_to_abort,
19 int num_cache_requests, 20 int num_cache_requests,
20 int num_network_requests, 21 int num_network_requests,
21 const PageLoadMetadata& metadata) 22 const PageLoadMetadata& metadata)
22 : first_background_time(first_background_time), 23 : first_background_time(first_background_time),
23 first_foreground_time(first_foreground_time), 24 first_foreground_time(first_foreground_time),
24 started_in_foreground(started_in_foreground), 25 started_in_foreground(started_in_foreground),
25 user_gesture(user_gesture), 26 user_gesture(user_gesture),
26 committed_url(committed_url), 27 committed_url(committed_url),
28 start_url(start_url),
27 time_to_commit(time_to_commit), 29 time_to_commit(time_to_commit),
28 abort_type(abort_type), 30 abort_type(abort_type),
29 abort_user_initiated(abort_user_initiated), 31 abort_user_initiated(abort_user_initiated),
30 time_to_abort(time_to_abort), 32 time_to_abort(time_to_abort),
31 num_cache_requests(num_cache_requests), 33 num_cache_requests(num_cache_requests),
32 num_network_requests(num_network_requests), 34 num_network_requests(num_network_requests),
33 metadata(metadata) {} 35 metadata(metadata) {}
34 36
35 PageLoadExtraInfo::PageLoadExtraInfo(const PageLoadExtraInfo& other) = default; 37 PageLoadExtraInfo::PageLoadExtraInfo(const PageLoadExtraInfo& other) = default;
36 38
37 PageLoadExtraInfo::~PageLoadExtraInfo() {} 39 PageLoadExtraInfo::~PageLoadExtraInfo() {}
38 40
39 FailedProvisionalLoadInfo::FailedProvisionalLoadInfo(base::TimeDelta interval, 41 FailedProvisionalLoadInfo::FailedProvisionalLoadInfo(base::TimeDelta interval,
40 net::Error error) 42 net::Error error)
41 : time_to_failed_provisional_load(interval), error(error) {} 43 : time_to_failed_provisional_load(interval), error(error) {}
42 44
43 FailedProvisionalLoadInfo::~FailedProvisionalLoadInfo() {} 45 FailedProvisionalLoadInfo::~FailedProvisionalLoadInfo() {}
44 46
45 } // namespace page_load_metrics 47 } // namespace page_load_metrics
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698