| 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 COMPONENTS_PAGE_LOAD_METRICS_COMMON_PAGE_LOAD_TIMING_H_ | 5 #ifndef COMPONENTS_PAGE_LOAD_METRICS_COMMON_PAGE_LOAD_TIMING_H_ |
| 6 #define COMPONENTS_PAGE_LOAD_METRICS_COMMON_PAGE_LOAD_TIMING_H_ | 6 #define COMPONENTS_PAGE_LOAD_METRICS_COMMON_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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 // that was inserted from document.write. This duration must be less than or | 73 // that was inserted from document.write. This duration must be less than or |
| 74 // equal to parse_blocked_on_script_load_duration. Note that this value may be | 74 // equal to parse_blocked_on_script_load_duration. Note that this value may be |
| 75 // updated multiple times during the period between parse_start and | 75 // updated multiple times during the period between parse_start and |
| 76 // parse_stop. Note that some uncommon cases where scripts are loaded via | 76 // parse_stop. Note that some uncommon cases where scripts are loaded via |
| 77 // document.write are not currently covered by this field. See crbug/600711 | 77 // document.write are not currently covered by this field. See crbug/600711 |
| 78 // for details. | 78 // for details. |
| 79 base::Optional<base::TimeDelta> | 79 base::Optional<base::TimeDelta> |
| 80 parse_blocked_on_script_load_from_document_write_duration; | 80 parse_blocked_on_script_load_from_document_write_duration; |
| 81 | 81 |
| 82 // If you add additional members, also be sure to update operator==, | 82 // If you add additional members, also be sure to update operator==, |
| 83 // page_load_metrics_messages.h, and IsEmpty(). | 83 // page_load_metrics_param_traits.h, and IsEmpty(). |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 struct PageLoadMetadata { | 86 struct PageLoadMetadata { |
| 87 PageLoadMetadata(); | 87 PageLoadMetadata(); |
| 88 bool operator==(const PageLoadMetadata& other) const; | 88 bool operator==(const PageLoadMetadata& other) const; |
| 89 // These are packed blink::WebLoadingBehaviorFlag enums. | 89 // These are packed blink::WebLoadingBehaviorFlag enums. |
| 90 int behavior_flags = blink::WebLoadingBehaviorNone; | 90 int behavior_flags = blink::WebLoadingBehaviorNone; |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 } // namespace page_load_metrics | 93 } // namespace page_load_metrics |
| 94 | 94 |
| 95 #endif // COMPONENTS_PAGE_LOAD_METRICS_COMMON_PAGE_LOAD_TIMING_H_ | 95 #endif // COMPONENTS_PAGE_LOAD_METRICS_COMMON_PAGE_LOAD_TIMING_H_ |
| OLD | NEW |