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

Side by Side Diff: chrome/browser/page_load_metrics/page_load_metrics_embedder_interface.h

Issue 2901383002: Buffer cross frame paint timing updates. (Closed)
Patch Set: address comment Created 3 years, 6 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_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
8 class GURL; 10 class GURL;
9 11
12 namespace base {
13 class Timer;
14 } // namespace base
15
10 namespace page_load_metrics { 16 namespace page_load_metrics {
11 17
12 class PageLoadTracker; 18 class PageLoadTracker;
13 19
14 // This class serves as a functional interface to various chrome// features. 20 // This class serves as a functional interface to various chrome// features.
15 // Impl version is defined in chrome/browser/page_load_metrics. 21 // Impl version is defined in chrome/browser/page_load_metrics.
16 class PageLoadMetricsEmbedderInterface { 22 class PageLoadMetricsEmbedderInterface {
17 public: 23 public:
18 virtual ~PageLoadMetricsEmbedderInterface() {} 24 virtual ~PageLoadMetricsEmbedderInterface() {}
19 virtual bool IsNewTabPageUrl(const GURL& url) = 0; 25 virtual bool IsNewTabPageUrl(const GURL& url) = 0;
20 virtual void RegisterObservers(PageLoadTracker* metrics) = 0; 26 virtual void RegisterObservers(PageLoadTracker* metrics) = 0;
27 virtual std::unique_ptr<base::Timer> CreateTimer() = 0;
21 }; 28 };
22 29
23 } // namespace page_load_metrics 30 } // namespace page_load_metrics
24 31
25 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_METRICS_EMBEDDER_INTERFACE _H_ 32 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_METRICS_EMBEDDER_INTERFACE _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698