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 #include <memory> | |
9 | |
10 #include "base/timer/timer.h" | |
Charlie Harrison
2017/05/26 19:31:34
I think it can just be a fwd declaration
Bryan McQuade
2017/05/26 20:07:32
Done
| |
11 | |
8 class GURL; | 12 class GURL; |
9 | 13 |
10 namespace page_load_metrics { | 14 namespace page_load_metrics { |
11 | 15 |
12 class PageLoadTracker; | 16 class PageLoadTracker; |
13 | 17 |
14 // This class serves as a functional interface to various chrome// features. | 18 // This class serves as a functional interface to various chrome// features. |
15 // Impl version is defined in chrome/browser/page_load_metrics. | 19 // Impl version is defined in chrome/browser/page_load_metrics. |
16 class PageLoadMetricsEmbedderInterface { | 20 class PageLoadMetricsEmbedderInterface { |
17 public: | 21 public: |
18 virtual ~PageLoadMetricsEmbedderInterface() {} | 22 virtual ~PageLoadMetricsEmbedderInterface() {} |
19 virtual bool IsNewTabPageUrl(const GURL& url) = 0; | 23 virtual bool IsNewTabPageUrl(const GURL& url) = 0; |
20 virtual void RegisterObservers(PageLoadTracker* metrics) = 0; | 24 virtual void RegisterObservers(PageLoadTracker* metrics) = 0; |
25 virtual std::unique_ptr<base::Timer> CreateTimer() = 0; | |
21 }; | 26 }; |
22 | 27 |
23 } // namespace page_load_metrics | 28 } // namespace page_load_metrics |
24 | 29 |
25 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_METRICS_EMBEDDER_INTERFACE _H_ | 30 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_METRICS_EMBEDDER_INTERFACE _H_ |
OLD | NEW |