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

Unified Diff: components/page_load_metrics/common/page_load_metrics_messages.h

Issue 1312213010: PageLoadMetrics renderer and browser implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Relax DCHECK constraints slightly for tests Created 5 years, 3 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
Index: components/page_load_metrics/common/page_load_metrics_messages.h
diff --git a/components/page_load_metrics/common/page_load_metrics_messages.h b/components/page_load_metrics/common/page_load_metrics_messages.h
new file mode 100644
index 0000000000000000000000000000000000000000..466e244643b41773cd1ff682195325138946b849
--- /dev/null
+++ b/components/page_load_metrics/common/page_load_metrics_messages.h
@@ -0,0 +1,26 @@
+// 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.
+
+// IPC messages for page load metrics.
+// Multiply-included message file, hence no include guard.
+
+#include "base/time/time.h"
+#include "components/page_load_metrics/common/page_load_timing.h"
+#include "ipc/ipc_message_macros.h"
+
+#define IPC_MESSAGE_START PageLoadMetricsMsgStart
+
+// See comments in page_load_timing.h for details on each field.
+IPC_STRUCT_TRAITS_BEGIN(page_load_metrics::PageLoadTiming)
+ IPC_STRUCT_TRAITS_MEMBER(navigation_start)
+ IPC_STRUCT_TRAITS_MEMBER(response_start)
+ IPC_STRUCT_TRAITS_MEMBER(dom_content_loaded_event_start)
+ IPC_STRUCT_TRAITS_MEMBER(load_event_start)
+ IPC_STRUCT_TRAITS_MEMBER(first_layout)
+IPC_STRUCT_TRAITS_END()
+
+// Sent from renderer to browser process when the PageLoadTiming for the
+// associated frame changed.
+IPC_MESSAGE_ROUTED1(PageLoadMetricsMsg_TimingUpdated,
+ page_load_metrics::PageLoadTiming)

Powered by Google App Engine
This is Rietveld 408576698