OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
Sam McNally
2016/07/07 05:10:48
This file perhaps should be renamed to page_load_m
tibell
2016/07/08 01:12:53
Done.
| |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // IPC messages for page load metrics. | 5 // IPC messages for page load metrics. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
9 #include "components/page_load_metrics/common/page_load_timing.h" | 9 #include "components/page_load_metrics/common/page_load_timing.h" |
10 #include "ipc/ipc_message_macros.h" | 10 #include "ipc/ipc_message_macros.h" |
11 | 11 |
12 #define IPC_MESSAGE_START PageLoadMetricsMsgStart | 12 #define IPC_MESSAGE_START PageLoadMetricsMsgStart |
Sam McNally
2016/07/07 05:10:48
Remove this and remove PageLoadMetricsMsgStart fro
tibell
2016/07/08 01:12:53
Done.
| |
13 | 13 |
14 // See comments in page_load_timing.h for details on each field. | 14 // See comments in page_load_timing.h for details on each field. |
15 IPC_STRUCT_TRAITS_BEGIN(page_load_metrics::PageLoadTiming) | 15 IPC_STRUCT_TRAITS_BEGIN(page_load_metrics::PageLoadTiming) |
16 IPC_STRUCT_TRAITS_MEMBER(navigation_start) | 16 IPC_STRUCT_TRAITS_MEMBER(navigation_start) |
17 IPC_STRUCT_TRAITS_MEMBER(response_start) | 17 IPC_STRUCT_TRAITS_MEMBER(response_start) |
18 IPC_STRUCT_TRAITS_MEMBER(dom_loading) | 18 IPC_STRUCT_TRAITS_MEMBER(dom_loading) |
19 IPC_STRUCT_TRAITS_MEMBER(dom_content_loaded_event_start) | 19 IPC_STRUCT_TRAITS_MEMBER(dom_content_loaded_event_start) |
20 IPC_STRUCT_TRAITS_MEMBER(load_event_start) | 20 IPC_STRUCT_TRAITS_MEMBER(load_event_start) |
21 IPC_STRUCT_TRAITS_MEMBER(first_layout) | 21 IPC_STRUCT_TRAITS_MEMBER(first_layout) |
22 IPC_STRUCT_TRAITS_MEMBER(first_paint) | 22 IPC_STRUCT_TRAITS_MEMBER(first_paint) |
23 IPC_STRUCT_TRAITS_MEMBER(first_text_paint) | 23 IPC_STRUCT_TRAITS_MEMBER(first_text_paint) |
24 IPC_STRUCT_TRAITS_MEMBER(first_image_paint) | 24 IPC_STRUCT_TRAITS_MEMBER(first_image_paint) |
25 IPC_STRUCT_TRAITS_MEMBER(first_contentful_paint) | 25 IPC_STRUCT_TRAITS_MEMBER(first_contentful_paint) |
26 IPC_STRUCT_TRAITS_MEMBER(parse_start) | 26 IPC_STRUCT_TRAITS_MEMBER(parse_start) |
27 IPC_STRUCT_TRAITS_MEMBER(parse_stop) | 27 IPC_STRUCT_TRAITS_MEMBER(parse_stop) |
28 IPC_STRUCT_TRAITS_MEMBER(parse_blocked_on_script_load_duration) | 28 IPC_STRUCT_TRAITS_MEMBER(parse_blocked_on_script_load_duration) |
29 IPC_STRUCT_TRAITS_MEMBER( | 29 IPC_STRUCT_TRAITS_MEMBER( |
30 parse_blocked_on_script_load_from_document_write_duration) | 30 parse_blocked_on_script_load_from_document_write_duration) |
31 IPC_STRUCT_TRAITS_END() | 31 IPC_STRUCT_TRAITS_END() |
32 | 32 |
33 IPC_STRUCT_TRAITS_BEGIN(page_load_metrics::PageLoadMetadata) | 33 IPC_STRUCT_TRAITS_BEGIN(page_load_metrics::PageLoadMetadata) |
34 IPC_STRUCT_TRAITS_MEMBER(behavior_flags) | 34 IPC_STRUCT_TRAITS_MEMBER(behavior_flags) |
35 IPC_STRUCT_TRAITS_END() | 35 IPC_STRUCT_TRAITS_END() |
36 | |
37 // Sent from renderer to browser process when the PageLoadTiming for the | |
38 // associated frame changed. | |
39 IPC_MESSAGE_ROUTED2(PageLoadMetricsMsg_TimingUpdated, | |
40 page_load_metrics::PageLoadTiming, | |
41 page_load_metrics::PageLoadMetadata) | |
OLD | NEW |