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

Side by Side Diff: chrome/common/page_load_metrics/page_load_metrics_messages.h

Issue 2468913002: Add CSSTiming to collect aggregate PLT-level stats about CSS. (Closed)
Patch Set: fix browser test Created 4 years, 1 month 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 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 "chrome/common/page_load_metrics/page_load_timing.h" 9 #include "chrome/common/page_load_metrics/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
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
16 IPC_STRUCT_TRAITS_BEGIN(page_load_metrics::StyleSheetTiming)
17 IPC_STRUCT_TRAITS_MEMBER(author_style_sheet_parse_duration_before_fcp)
18 IPC_STRUCT_TRAITS_END()
19
15 IPC_STRUCT_TRAITS_BEGIN(page_load_metrics::PageLoadTiming) 20 IPC_STRUCT_TRAITS_BEGIN(page_load_metrics::PageLoadTiming)
16 IPC_STRUCT_TRAITS_MEMBER(navigation_start) 21 IPC_STRUCT_TRAITS_MEMBER(navigation_start)
17 IPC_STRUCT_TRAITS_MEMBER(response_start) 22 IPC_STRUCT_TRAITS_MEMBER(response_start)
18 IPC_STRUCT_TRAITS_MEMBER(dom_content_loaded_event_start) 23 IPC_STRUCT_TRAITS_MEMBER(dom_content_loaded_event_start)
19 IPC_STRUCT_TRAITS_MEMBER(load_event_start) 24 IPC_STRUCT_TRAITS_MEMBER(load_event_start)
20 IPC_STRUCT_TRAITS_MEMBER(first_layout) 25 IPC_STRUCT_TRAITS_MEMBER(first_layout)
21 IPC_STRUCT_TRAITS_MEMBER(first_paint) 26 IPC_STRUCT_TRAITS_MEMBER(first_paint)
22 IPC_STRUCT_TRAITS_MEMBER(first_text_paint) 27 IPC_STRUCT_TRAITS_MEMBER(first_text_paint)
23 IPC_STRUCT_TRAITS_MEMBER(first_image_paint) 28 IPC_STRUCT_TRAITS_MEMBER(first_image_paint)
24 IPC_STRUCT_TRAITS_MEMBER(first_contentful_paint) 29 IPC_STRUCT_TRAITS_MEMBER(first_contentful_paint)
25 IPC_STRUCT_TRAITS_MEMBER(first_meaningful_paint) 30 IPC_STRUCT_TRAITS_MEMBER(first_meaningful_paint)
26 IPC_STRUCT_TRAITS_MEMBER(parse_start) 31 IPC_STRUCT_TRAITS_MEMBER(parse_start)
27 IPC_STRUCT_TRAITS_MEMBER(parse_stop) 32 IPC_STRUCT_TRAITS_MEMBER(parse_stop)
28 IPC_STRUCT_TRAITS_MEMBER(parse_blocked_on_script_load_duration) 33 IPC_STRUCT_TRAITS_MEMBER(parse_blocked_on_script_load_duration)
29 IPC_STRUCT_TRAITS_MEMBER( 34 IPC_STRUCT_TRAITS_MEMBER(
30 parse_blocked_on_script_load_from_document_write_duration) 35 parse_blocked_on_script_load_from_document_write_duration)
31 IPC_STRUCT_TRAITS_MEMBER(parse_blocked_on_script_execution_duration) 36 IPC_STRUCT_TRAITS_MEMBER(parse_blocked_on_script_execution_duration)
32 IPC_STRUCT_TRAITS_MEMBER( 37 IPC_STRUCT_TRAITS_MEMBER(
33 parse_blocked_on_script_execution_from_document_write_duration) 38 parse_blocked_on_script_execution_from_document_write_duration)
39 IPC_STRUCT_TRAITS_MEMBER(style_sheet_timing)
34 IPC_STRUCT_TRAITS_END() 40 IPC_STRUCT_TRAITS_END()
35 41
36 IPC_STRUCT_TRAITS_BEGIN(page_load_metrics::PageLoadMetadata) 42 IPC_STRUCT_TRAITS_BEGIN(page_load_metrics::PageLoadMetadata)
37 IPC_STRUCT_TRAITS_MEMBER(behavior_flags) 43 IPC_STRUCT_TRAITS_MEMBER(behavior_flags)
38 IPC_STRUCT_TRAITS_END() 44 IPC_STRUCT_TRAITS_END()
39 45
40 // Sent from renderer to browser process when the PageLoadTiming for the 46 // Sent from renderer to browser process when the PageLoadTiming for the
41 // associated frame changed. 47 // associated frame changed.
42 IPC_MESSAGE_ROUTED2(PageLoadMetricsMsg_TimingUpdated, 48 IPC_MESSAGE_ROUTED2(PageLoadMetricsMsg_TimingUpdated,
43 page_load_metrics::PageLoadTiming, 49 page_load_metrics::PageLoadTiming,
44 page_load_metrics::PageLoadMetadata) 50 page_load_metrics::PageLoadMetadata)
OLDNEW
« no previous file with comments | « chrome/browser/page_load_metrics/page_load_metrics_browsertest.cc ('k') | chrome/common/page_load_metrics/page_load_timing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698