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

Side by Side Diff: chrome/renderer/page_load_metrics/page_timing_sender.h

Issue 2823523003: [Page Load Metrics] PageLoadMetrics Mojofication. (Closed)
Patch Set: rebase 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_RENDERER_PAGE_LOAD_METRICS_PAGE_TIMING_SENDER_H_
6 #define CHROME_RENDERER_PAGE_LOAD_METRICS_PAGE_TIMING_SENDER_H_
7
8 #include <memory>
9
10 #include "chrome/common/page_load_metrics/page_load_metrics.mojom.h"
11
12 namespace content {
13
14 class RenderFrame;
15
16 } // namespace content
17
18 namespace page_load_metrics {
19
20 // PageTimingSender is an interface that is responsible for sending page load
21 // timing through IPC.
22 class PageTimingSender {
23 public:
24 virtual ~PageTimingSender() {}
25 static std::unique_ptr<PageTimingSender> CreatePageTimingSender(
26 content::RenderFrame* render_frame,
27 const int routing_id);
28 virtual void SendTiming(const mojom::PageLoadTimingPtr& timing,
29 const mojom::PageLoadMetadataPtr& metadata) = 0;
30 };
31
32 } // namespace page_load_metrics
33
34 #endif // CHROME_RENDERER_PAGE_LOAD_METRICS_PAGE_TIMING_SENDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698