| OLD | NEW |
| 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 "components/page_load_metrics/browser/page_load_metrics_observer.h" | 5 #include "components/page_load_metrics/browser/page_load_metrics_observer.h" |
| 6 | 6 |
| 7 #include "base/time/time.h" |
| 8 |
| 7 namespace page_load_metrics { | 9 namespace page_load_metrics { |
| 8 | 10 |
| 9 PageLoadExtraInfo::PageLoadExtraInfo( | 11 PageLoadExtraInfo::PageLoadExtraInfo( |
| 10 base::TimeDelta first_background_time, | 12 base::TimeDelta first_background_time, |
| 11 base::TimeDelta first_foreground_time, | 13 base::TimeDelta first_foreground_time, |
| 12 bool started_in_foreground, | 14 bool started_in_foreground, |
| 13 const GURL& committed_url, | 15 const GURL& committed_url, |
| 16 bool committed, |
| 14 base::TimeDelta time_to_commit, | 17 base::TimeDelta time_to_commit, |
| 15 UserAbortType abort_type, | 18 UserAbortType abort_type, |
| 16 base::TimeDelta time_to_abort) | 19 base::TimeDelta time_to_abort) |
| 17 : first_background_time(first_background_time), | 20 : first_background_time(first_background_time), |
| 18 first_foreground_time(first_foreground_time), | 21 first_foreground_time(first_foreground_time), |
| 19 started_in_foreground(started_in_foreground), | 22 started_in_foreground(started_in_foreground), |
| 20 committed_url(committed_url), | 23 committed_url(committed_url), |
| 24 committed(committed), |
| 21 time_to_commit(time_to_commit), | 25 time_to_commit(time_to_commit), |
| 22 abort_type(abort_type), | 26 abort_type(abort_type), |
| 23 time_to_abort(time_to_abort) {} | 27 time_to_abort(time_to_abort) {} |
| 24 | 28 |
| 25 } // namespace page_load_metrics | 29 } // namespace page_load_metrics |
| OLD | NEW |