| OLD | NEW |
| 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 #ifndef CHROME_COMMON_PAGE_LOAD_METRICS_PAGE_LOAD_TIMING_H_ | 5 #ifndef CHROME_COMMON_PAGE_LOAD_METRICS_PAGE_LOAD_TIMING_H_ |
| 6 #define CHROME_COMMON_PAGE_LOAD_METRICS_PAGE_LOAD_TIMING_H_ | 6 #define CHROME_COMMON_PAGE_LOAD_METRICS_PAGE_LOAD_TIMING_H_ |
| 7 | 7 |
| 8 #include "base/optional.h" | 8 #include "base/optional.h" |
| 9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
| 10 #include "third_party/WebKit/public/platform/WebLoadingBehaviorFlag.h" | 10 #include "third_party/WebKit/public/platform/WebLoadingBehaviorFlag.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 base::Optional<base::TimeDelta> first_layout; | 49 base::Optional<base::TimeDelta> first_layout; |
| 50 | 50 |
| 51 // Time when the first paint is performed. | 51 // Time when the first paint is performed. |
| 52 base::Optional<base::TimeDelta> first_paint; | 52 base::Optional<base::TimeDelta> first_paint; |
| 53 // Time when the first non-blank text is painted. | 53 // Time when the first non-blank text is painted. |
| 54 base::Optional<base::TimeDelta> first_text_paint; | 54 base::Optional<base::TimeDelta> first_text_paint; |
| 55 // Time when the first image is painted. | 55 // Time when the first image is painted. |
| 56 base::Optional<base::TimeDelta> first_image_paint; | 56 base::Optional<base::TimeDelta> first_image_paint; |
| 57 // Time when the first contentful thing (image, text, etc.) is painted. | 57 // Time when the first contentful thing (image, text, etc.) is painted. |
| 58 base::Optional<base::TimeDelta> first_contentful_paint; | 58 base::Optional<base::TimeDelta> first_contentful_paint; |
| 59 // Time when the page's primary content is painted. |
| 60 base::Optional<base::TimeDelta> first_meaningful_paint; |
| 59 | 61 |
| 60 // Time that the document's parser started and stopped parsing main resource | 62 // Time that the document's parser started and stopped parsing main resource |
| 61 // content. | 63 // content. |
| 62 base::Optional<base::TimeDelta> parse_start; | 64 base::Optional<base::TimeDelta> parse_start; |
| 63 base::Optional<base::TimeDelta> parse_stop; | 65 base::Optional<base::TimeDelta> parse_stop; |
| 64 | 66 |
| 65 // Sum of times when the parser is blocked waiting on the load of a script. | 67 // Sum of times when the parser is blocked waiting on the load of a script. |
| 66 // This duration takes place between parser_start and parser_stop, and thus | 68 // This duration takes place between parser_start and parser_stop, and thus |
| 67 // must be less than or equal to parser_stop - parser_start. Note that this | 69 // must be less than or equal to parser_stop - parser_start. Note that this |
| 68 // value may be updated multiple times during the period between parse_start | 70 // value may be updated multiple times during the period between parse_start |
| (...skipping 17 matching lines...) Expand all Loading... |
| 86 struct PageLoadMetadata { | 88 struct PageLoadMetadata { |
| 87 PageLoadMetadata(); | 89 PageLoadMetadata(); |
| 88 bool operator==(const PageLoadMetadata& other) const; | 90 bool operator==(const PageLoadMetadata& other) const; |
| 89 // These are packed blink::WebLoadingBehaviorFlag enums. | 91 // These are packed blink::WebLoadingBehaviorFlag enums. |
| 90 int behavior_flags = blink::WebLoadingBehaviorNone; | 92 int behavior_flags = blink::WebLoadingBehaviorNone; |
| 91 }; | 93 }; |
| 92 | 94 |
| 93 } // namespace page_load_metrics | 95 } // namespace page_load_metrics |
| 94 | 96 |
| 95 #endif // CHROME_COMMON_PAGE_LOAD_METRICS_PAGE_LOAD_TIMING_H_ | 97 #endif // CHROME_COMMON_PAGE_LOAD_METRICS_PAGE_LOAD_TIMING_H_ |
| OLD | NEW |