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

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

Issue 2371883002: Add PLMObserver::FlushMetricsOnAppEnterBackground. (Closed)
Patch Set: fix comment Created 4 years, 2 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 | « chrome/browser/page_load_metrics/page_load_metrics_observer.h ('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 #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,
(...skipping 26 matching lines...) Expand all
37 PageLoadExtraInfo::PageLoadExtraInfo(const PageLoadExtraInfo& other) = default; 37 PageLoadExtraInfo::PageLoadExtraInfo(const PageLoadExtraInfo& other) = default;
38 38
39 PageLoadExtraInfo::~PageLoadExtraInfo() {} 39 PageLoadExtraInfo::~PageLoadExtraInfo() {}
40 40
41 FailedProvisionalLoadInfo::FailedProvisionalLoadInfo(base::TimeDelta interval, 41 FailedProvisionalLoadInfo::FailedProvisionalLoadInfo(base::TimeDelta interval,
42 net::Error error) 42 net::Error error)
43 : time_to_failed_provisional_load(interval), error(error) {} 43 : time_to_failed_provisional_load(interval), error(error) {}
44 44
45 FailedProvisionalLoadInfo::~FailedProvisionalLoadInfo() {} 45 FailedProvisionalLoadInfo::~FailedProvisionalLoadInfo() {}
46 46
47 PageLoadMetricsObserver::ObservePolicy
48 PageLoadMetricsObserver::FlushMetricsOnAppEnterBackground(
49 const PageLoadTiming& timing,
50 const PageLoadExtraInfo& extra_info) {
51 return CONTINUE_OBSERVING;
52 }
53
47 } // namespace page_load_metrics 54 } // namespace page_load_metrics
OLDNEW
« no previous file with comments | « chrome/browser/page_load_metrics/page_load_metrics_observer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698