blob: e3aaa79bac1d6a59fa50ce926a1c0a87442d65d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_METRICS_INITIALIZE_H_
#define CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_METRICS_INITIALIZE_H_
#include "components/page_load_metrics/browser/metrics_web_contents_observer.h"
namespace content {
class WebContents;
}
namespace rappor {
class RapporService;
}
namespace chrome {
void InitializePageLoadMetricsForWebContents(
content::WebContents* web_contents);
class PageLoadMetricsEmbedder
: public page_load_metrics::PageLoadMetricsEmbedderInterface {
public:
// PageLoadMetricsEmbedderInterface:
~PageLoadMetricsEmbedder() override;
rappor::RapporService* GetRapporService() override;
bool IsPrerendering(content::WebContents* web_contents) override;
void RegisterObservers(page_load_metrics::PageLoadTracker* tracker) override;
};
} // namespace chrome
#endif // CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_METRICS_INITIALIZE_H_
|