| OLD | NEW |
| 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_PAGE_LOAD_METRICS_EMBEDDER_INTERFACE_H_ | 5 #ifndef CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_METRICS_EMBEDDER_INTERFACE_H_ |
| 6 #define CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_METRICS_EMBEDDER_INTERFACE_H_ | 6 #define CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_METRICS_EMBEDDER_INTERFACE_H_ |
| 7 | 7 |
| 8 class GURL; | 8 class GURL; |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| 11 class WebContents; | 11 class WebContents; |
| 12 } // namespace content | 12 } // namespace content |
| 13 | 13 |
| 14 namespace page_load_metrics { | 14 namespace page_load_metrics { |
| 15 | 15 |
| 16 class PageLoadTracker; | 16 class PageLoadTracker; |
| 17 | 17 |
| 18 // This class serves as a functional interface to various chrome// features. | 18 // This class serves as a functional interface to various chrome// features. |
| 19 // Impl version is defined in chrome/browser/page_load_metrics. | 19 // Impl version is defined in chrome/browser/page_load_metrics. |
| 20 class PageLoadMetricsEmbedderInterface { | 20 class PageLoadMetricsEmbedderInterface { |
| 21 public: | 21 public: |
| 22 virtual ~PageLoadMetricsEmbedderInterface() {} | 22 virtual ~PageLoadMetricsEmbedderInterface() {} |
| 23 virtual bool IsPrerendering(content::WebContents* web_contents) = 0; | |
| 24 virtual bool IsNewTabPageUrl(const GURL& url) = 0; | 23 virtual bool IsNewTabPageUrl(const GURL& url) = 0; |
| 25 virtual void RegisterObservers(PageLoadTracker* metrics) = 0; | 24 virtual void RegisterObservers(PageLoadTracker* metrics) = 0; |
| 26 }; | 25 }; |
| 27 | 26 |
| 28 } // namespace page_load_metrics | 27 } // namespace page_load_metrics |
| 29 | 28 |
| 30 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_METRICS_EMBEDDER_INTERFACE
_H_ | 29 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_METRICS_EMBEDDER_INTERFACE
_H_ |
| OLD | NEW |