Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 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 module page_load_metrics.mojom; | |
| 6 | |
| 7 import "mojo/common/time.mojom"; | |
| 8 | |
| 9 // See comments in page_load_timing.h for details on each field. | |
|
Bryan McQuade
2017/04/24 21:50:55
interesting, do all types sent over mojo have to b
lpy
2017/04/25 09:03:37
I think that's how mojo works since I am following
Ken Rockot(use gerrit already)
2017/04/25 19:31:46
Absolutely yes, everything sent over Mojo has to b
Bryan McQuade
2017/04/26 01:55:42
Ah, ok, thanks! Is it possible to declare the stru
Ken Rockot(use gerrit already)
2017/04/26 03:08:01
No, and we won't be supporting that. I mean, you c
| |
| 10 | |
| 11 struct DocumentTiming { | |
| 12 mojo.common.mojom.TimeDelta? dom_content_loaded_event_start; | |
| 13 mojo.common.mojom.TimeDelta? load_event_start; | |
| 14 mojo.common.mojom.TimeDelta? first_layout; | |
| 15 }; | |
| 16 | |
| 17 struct PaintTiming { | |
| 18 mojo.common.mojom.TimeDelta? first_paint; | |
| 19 mojo.common.mojom.TimeDelta? first_text_paint; | |
| 20 mojo.common.mojom.TimeDelta? first_image_paint; | |
| 21 mojo.common.mojom.TimeDelta? first_contentful_paint; | |
| 22 mojo.common.mojom.TimeDelta? first_meaningful_paint; | |
| 23 }; | |
| 24 | |
| 25 struct ParseTiming { | |
| 26 mojo.common.mojom.TimeDelta? parse_start; | |
| 27 mojo.common.mojom.TimeDelta? parse_stop; | |
| 28 mojo.common.mojom.TimeDelta? parse_blocked_on_script_load_duration; | |
| 29 mojo.common.mojom.TimeDelta? parse_blocked_on_script_load_from_document_write_ duration; | |
| 30 mojo.common.mojom.TimeDelta? parse_blocked_on_script_execution_duration; | |
| 31 mojo.common.mojom.TimeDelta? parse_blocked_on_script_execution_from_document_w rite_duration; | |
| 32 }; | |
| 33 | |
| 34 struct StyleSheetTiming { | |
| 35 mojo.common.mojom.TimeDelta? author_style_sheet_parse_duration_before_fcp; | |
| 36 mojo.common.mojom.TimeDelta? update_style_duration_before_fcp; | |
| 37 }; | |
| 38 | |
| 39 struct PageLoadTiming { | |
| 40 mojo.common.mojom.Time navigation_start; | |
| 41 mojo.common.mojom.TimeDelta? response_start; | |
| 42 DocumentTiming document_timing; | |
| 43 PaintTiming paint_timing; | |
| 44 ParseTiming parse_timing; | |
| 45 StyleSheetTiming style_sheet_timing; | |
| 46 }; | |
| 47 | |
| 48 struct PageLoadMetadata { | |
| 49 int32 behavior_flags; | |
| 50 }; | |
| 51 | |
| 52 // Sent from renderer to browser process when the PageLoadTiming for the | |
| 53 // associated frame changed. | |
| 54 interface PageLoadMetrics { | |
|
Bryan McQuade
2017/04/24 21:50:55
though I don't have a better name for this service
Ken Rockot(use gerrit already)
2017/04/25 19:31:46
terminology nit: it's not a service.
All mojo int
Bryan McQuade
2017/04/26 01:55:42
the mojom:: namespace does help to clarify the cla
| |
| 55 UpdateTiming(PageLoadTiming page_load_timing, PageLoadMetadata page_load_metad ata); | |
| 56 }; | |
| OLD | NEW |