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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/page_load_metrics/page_timing_metrics_sender_unittest.cc ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/page_load_metrics/page_timing_sender.h
diff --git a/chrome/renderer/page_load_metrics/page_timing_sender.h b/chrome/renderer/page_load_metrics/page_timing_sender.h
new file mode 100644
index 0000000000000000000000000000000000000000..142d298688d80636c560accc1906006feb1bbd51
--- /dev/null
+++ b/chrome/renderer/page_load_metrics/page_timing_sender.h
@@ -0,0 +1,23 @@
+// Copyright 2017 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_RENDERER_PAGE_LOAD_METRICS_PAGE_TIMING_SENDER_H_
+#define CHROME_RENDERER_PAGE_LOAD_METRICS_PAGE_TIMING_SENDER_H_
+
+#include "chrome/common/page_load_metrics/page_load_metrics.mojom.h"
+
+namespace page_load_metrics {
+
+// PageTimingSender is an interface that is responsible for sending page load
+// timing through IPC.
+class PageTimingSender {
+ public:
+ virtual ~PageTimingSender() {}
+ virtual void SendTiming(const mojom::PageLoadTimingPtr& timing,
+ const mojom::PageLoadMetadataPtr& metadata) = 0;
+};
+
+} // namespace page_load_metrics
+
+#endif // CHROME_RENDERER_PAGE_LOAD_METRICS_PAGE_TIMING_SENDER_H_
« no previous file with comments | « chrome/renderer/page_load_metrics/page_timing_metrics_sender_unittest.cc ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698