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

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

Issue 2478903002: DRP metrics observer stop observing after hidden (Closed)
Patch Set: bmcquade comments Created 4 years, 1 month 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,
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 PageLoadMetricsObserver::ObservePolicy PageLoadMetricsObserver::OnRedirect( 52 PageLoadMetricsObserver::ObservePolicy PageLoadMetricsObserver::OnRedirect(
53 content::NavigationHandle* navigation_handle) { 53 content::NavigationHandle* navigation_handle) {
54 return CONTINUE_OBSERVING; 54 return CONTINUE_OBSERVING;
55 } 55 }
56 56
57 PageLoadMetricsObserver::ObservePolicy PageLoadMetricsObserver::OnCommit( 57 PageLoadMetricsObserver::ObservePolicy PageLoadMetricsObserver::OnCommit(
58 content::NavigationHandle* navigation_handle) { 58 content::NavigationHandle* navigation_handle) {
59 return CONTINUE_OBSERVING; 59 return CONTINUE_OBSERVING;
60 } 60 }
61 61
62 PageLoadMetricsObserver::ObservePolicy PageLoadMetricsObserver::OnHidden() { 62 PageLoadMetricsObserver::ObservePolicy PageLoadMetricsObserver::OnHidden(
63 const PageLoadTiming& timing,
64 const PageLoadExtraInfo& extra_info) {
63 return CONTINUE_OBSERVING; 65 return CONTINUE_OBSERVING;
64 } 66 }
65 67
66 PageLoadMetricsObserver::ObservePolicy PageLoadMetricsObserver::OnShown() { 68 PageLoadMetricsObserver::ObservePolicy PageLoadMetricsObserver::OnShown() {
67 return CONTINUE_OBSERVING; 69 return CONTINUE_OBSERVING;
68 } 70 }
69 71
70 PageLoadMetricsObserver::ObservePolicy 72 PageLoadMetricsObserver::ObservePolicy
71 PageLoadMetricsObserver::FlushMetricsOnAppEnterBackground( 73 PageLoadMetricsObserver::FlushMetricsOnAppEnterBackground(
72 const PageLoadTiming& timing, 74 const PageLoadTiming& timing,
73 const PageLoadExtraInfo& extra_info) { 75 const PageLoadExtraInfo& extra_info) {
74 return CONTINUE_OBSERVING; 76 return CONTINUE_OBSERVING;
75 } 77 }
76 78
77 } // namespace page_load_metrics 79 } // namespace page_load_metrics
OLDNEW
« no previous file with comments | « chrome/browser/page_load_metrics/page_load_metrics_observer.h ('k') | chrome/browser/page_load_metrics/page_load_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698