Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 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 // IPC messages for page load metrics. | |
| 6 // Multiply-included message file, hence no include guard. | |
| 7 | |
| 8 #include "base/time/time.h" | |
| 9 #include "components/page_load_metrics/common/page_load_timing.h" | |
| 10 #include "ipc/ipc_message_macros.h" | |
| 11 | |
| 12 #define IPC_MESSAGE_START PageLoadMetricsMsgStart | |
| 13 | |
| 14 // See comments in page_load_timing.h for details on each field. | |
| 15 IPC_STRUCT_TRAITS_BEGIN(page_load_metrics::PageLoadTiming) | |
| 16 IPC_STRUCT_TRAITS_MEMBER(navigation_start) | |
| 17 IPC_STRUCT_TRAITS_MEMBER(response_start) | |
| 18 IPC_STRUCT_TRAITS_MEMBER(dom_content_loaded_event_start) | |
| 19 IPC_STRUCT_TRAITS_MEMBER(load_event_start) | |
| 20 IPC_STRUCT_TRAITS_MEMBER(first_layout) | |
| 21 IPC_STRUCT_TRAITS_END() | |
| 22 | |
| 23 // Sent from renderer to browser process when the PageLoadTiming for the | |
| 24 // associated frame changed. | |
| 25 IPC_MESSAGE_ROUTED1(PageLoadMetricsMsg_OnTimingUpdated, | |
|
nasko
2015/08/26 17:27:24
nit: No need for "On" prefix, which we usually use
| |
| 26 page_load_metrics::PageLoadTiming) | |
| OLD | NEW |