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

Side by Side Diff: chrome/browser/page_load_metrics/observers/prerender_page_load_metrics_observer.h

Issue 2874663005: [Page Load Metrics] Add mojom file to page load metrics. (Closed)
Patch Set: Remove unnecessary variable Created 3 years, 7 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef CHROME_BROWSER_PAGE_LOAD_METRICS_OBSERVERS_PRERENDER_PAGE_LOAD_METRICS_O BSERVER_H_ 5 #ifndef CHROME_BROWSER_PAGE_LOAD_METRICS_OBSERVERS_PRERENDER_PAGE_LOAD_METRICS_O BSERVER_H_
6 #define CHROME_BROWSER_PAGE_LOAD_METRICS_OBSERVERS_PRERENDER_PAGE_LOAD_METRICS_O BSERVER_H_ 6 #define CHROME_BROWSER_PAGE_LOAD_METRICS_OBSERVERS_PRERENDER_PAGE_LOAD_METRICS_O BSERVER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/page_load_metrics/page_load_metrics_observer.h" 9 #include "chrome/browser/page_load_metrics/page_load_metrics_observer.h"
10 #include "url/gurl.h" 10 #include "url/gurl.h"
(...skipping 22 matching lines...) Expand all
33 // manager and the web_contents must outlive this observer. 33 // manager and the web_contents must outlive this observer.
34 PrerenderPageLoadMetricsObserver(prerender::PrerenderManager* manager, 34 PrerenderPageLoadMetricsObserver(prerender::PrerenderManager* manager,
35 content::WebContents* web_contents); 35 content::WebContents* web_contents);
36 36
37 // page_load_metrics::PageLoadMetricsObserver: 37 // page_load_metrics::PageLoadMetricsObserver:
38 ObservePolicy OnStart(content::NavigationHandle* navigation_handle, 38 ObservePolicy OnStart(content::NavigationHandle* navigation_handle,
39 const GURL& currently_committed_url, 39 const GURL& currently_committed_url,
40 bool started_in_foreground) override; 40 bool started_in_foreground) override;
41 ObservePolicy OnCommit(content::NavigationHandle* navigation_handle) override; 41 ObservePolicy OnCommit(content::NavigationHandle* navigation_handle) override;
42 void OnFirstContentfulPaintInPage( 42 void OnFirstContentfulPaintInPage(
43 const page_load_metrics::PageLoadTiming& timing, 43 const page_load_metrics::mojom::PageLoadTiming& timing,
44 const page_load_metrics::PageLoadExtraInfo& extra_info) override; 44 const page_load_metrics::PageLoadExtraInfo& extra_info) override;
45 ObservePolicy OnHidden( 45 ObservePolicy OnHidden(
46 const page_load_metrics::PageLoadTiming& timing, 46 const page_load_metrics::mojom::PageLoadTiming& timing,
47 const page_load_metrics::PageLoadExtraInfo& extra_info) override; 47 const page_load_metrics::PageLoadExtraInfo& extra_info) override;
48 48
49 void SetNavigationStartTicksForTesting(base::TimeTicks ticks); 49 void SetNavigationStartTicksForTesting(base::TimeTicks ticks);
50 50
51 private: 51 private:
52 prerender::PrerenderManager* const prerender_manager_; 52 prerender::PrerenderManager* const prerender_manager_;
53 content::WebContents* web_contents_; 53 content::WebContents* web_contents_;
54 base::TimeTicks start_ticks_; 54 base::TimeTicks start_ticks_;
55 bool is_no_store_; 55 bool is_no_store_;
56 bool was_hidden_; 56 bool was_hidden_;
57 57
58 DISALLOW_COPY_AND_ASSIGN(PrerenderPageLoadMetricsObserver); 58 DISALLOW_COPY_AND_ASSIGN(PrerenderPageLoadMetricsObserver);
59 }; 59 };
60 60
61 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_OBSERVERS_PRERENDER_PAGE_LOAD_METRIC S_OBSERVER_H_ 61 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_OBSERVERS_PRERENDER_PAGE_LOAD_METRIC S_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698