| 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 17 matching lines...) Expand all Loading... |
| 28 bool IsEmpty() const; | 28 bool IsEmpty() const; |
| 29 | 29 |
| 30 // Time that the navigation for the associated page was initiated. | 30 // Time that the navigation for the associated page was initiated. |
| 31 base::Time navigation_start; | 31 base::Time navigation_start; |
| 32 | 32 |
| 33 // All TimeDeltas are relative to navigation_start | 33 // All TimeDeltas are relative to navigation_start |
| 34 | 34 |
| 35 // Time that the first byte of the response is received. | 35 // Time that the first byte of the response is received. |
| 36 base::Optional<base::TimeDelta> response_start; | 36 base::Optional<base::TimeDelta> response_start; |
| 37 | 37 |
| 38 // Time that the document transitions to the 'loading' state. This is roughly | |
| 39 // the time that the HTML parser begins parsing the main HTML resource. | |
| 40 base::Optional<base::TimeDelta> dom_loading; | |
| 41 | |
| 42 // Time immediately before the DOMContentLoaded event is fired. | 38 // Time immediately before the DOMContentLoaded event is fired. |
| 43 base::Optional<base::TimeDelta> dom_content_loaded_event_start; | 39 base::Optional<base::TimeDelta> dom_content_loaded_event_start; |
| 44 | 40 |
| 45 // Time immediately before the load event is fired. | 41 // Time immediately before the load event is fired. |
| 46 base::Optional<base::TimeDelta> load_event_start; | 42 base::Optional<base::TimeDelta> load_event_start; |
| 47 | 43 |
| 48 // Time when the first layout is completed. | 44 // Time when the first layout is completed. |
| 49 base::Optional<base::TimeDelta> first_layout; | 45 base::Optional<base::TimeDelta> first_layout; |
| 50 | 46 |
| 51 // Time when the first paint is performed. | 47 // Time when the first paint is performed. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 struct PageLoadMetadata { | 82 struct PageLoadMetadata { |
| 87 PageLoadMetadata(); | 83 PageLoadMetadata(); |
| 88 bool operator==(const PageLoadMetadata& other) const; | 84 bool operator==(const PageLoadMetadata& other) const; |
| 89 // These are packed blink::WebLoadingBehaviorFlag enums. | 85 // These are packed blink::WebLoadingBehaviorFlag enums. |
| 90 int behavior_flags = blink::WebLoadingBehaviorNone; | 86 int behavior_flags = blink::WebLoadingBehaviorNone; |
| 91 }; | 87 }; |
| 92 | 88 |
| 93 } // namespace page_load_metrics | 89 } // namespace page_load_metrics |
| 94 | 90 |
| 95 #endif // CHROME_COMMON_PAGE_LOAD_METRICS_PAGE_LOAD_TIMING_H_ | 91 #endif // CHROME_COMMON_PAGE_LOAD_METRICS_PAGE_LOAD_TIMING_H_ |
| OLD | NEW |