| 
									
										
										
										
											2022-10-13 19:19:32 +02:00
										 |  |  | /*
 | 
					
						
							|  |  |  |  * Copyright (c) 2022, Linus Groh <linusg@serenityos.org> | 
					
						
							| 
									
										
										
										
											2025-01-23 09:15:35 -07:00
										 |  |  |  * Copyright (c) 2025, Andrew Kaster <andrew@ladybird.org> | 
					
						
							| 
									
										
										
										
											2022-10-13 19:19:32 +02:00
										 |  |  |  * | 
					
						
							|  |  |  |  * SPDX-License-Identifier: BSD-2-Clause | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #pragma once
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <AK/ByteBuffer.h>
 | 
					
						
							| 
									
										
										
										
											2025-02-26 15:46:41 +00:00
										 |  |  | #include <AK/FlyString.h>
 | 
					
						
							| 
									
										
										
										
											2022-10-13 19:19:32 +02:00
										 |  |  | #include <LibWeb/HighResolutionTime/DOMHighResTimeStamp.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | namespace Web::Fetch::Infrastructure { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // https://fetch.spec.whatwg.org/#connection-timing-info
 | 
					
						
							| 
									
										
										
										
											2025-01-23 09:15:35 -07:00
										 |  |  | struct ConnectionTimingInfo { | 
					
						
							| 
									
										
										
										
											2022-10-13 19:19:32 +02:00
										 |  |  |     // https://fetch.spec.whatwg.org/#connection-timing-info-domain-lookup-start-time
 | 
					
						
							|  |  |  |     // domain lookup start time (default 0)
 | 
					
						
							|  |  |  |     //     A DOMHighResTimeStamp.
 | 
					
						
							| 
									
										
										
										
											2025-01-23 09:15:35 -07:00
										 |  |  |     HighResolutionTime::DOMHighResTimeStamp domain_lookup_start_time { 0 }; | 
					
						
							| 
									
										
										
										
											2022-10-13 19:19:32 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |     // https://fetch.spec.whatwg.org/#connection-timing-info-domain-lookup-end-time
 | 
					
						
							|  |  |  |     // domain lookup end time (default 0)
 | 
					
						
							|  |  |  |     //     A DOMHighResTimeStamp.
 | 
					
						
							| 
									
										
										
										
											2025-01-23 09:15:35 -07:00
										 |  |  |     HighResolutionTime::DOMHighResTimeStamp domain_lookup_end_time { 0 }; | 
					
						
							| 
									
										
										
										
											2022-10-13 19:19:32 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |     // https://fetch.spec.whatwg.org/#connection-timing-info-connection-start-time
 | 
					
						
							|  |  |  |     // connection start time (default 0)
 | 
					
						
							|  |  |  |     //     A DOMHighResTimeStamp.
 | 
					
						
							| 
									
										
										
										
											2025-01-23 09:15:35 -07:00
										 |  |  |     HighResolutionTime::DOMHighResTimeStamp connection_start_time { 0 }; | 
					
						
							| 
									
										
										
										
											2022-10-13 19:19:32 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |     // https://fetch.spec.whatwg.org/#connection-timing-info-connection-end-time
 | 
					
						
							|  |  |  |     // connection end time (default 0)
 | 
					
						
							|  |  |  |     //     A DOMHighResTimeStamp.
 | 
					
						
							| 
									
										
										
										
											2025-01-23 09:15:35 -07:00
										 |  |  |     HighResolutionTime::DOMHighResTimeStamp connection_end_time { 0 }; | 
					
						
							| 
									
										
										
										
											2022-10-13 19:19:32 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |     // https://fetch.spec.whatwg.org/#connection-timing-info-secure-connection-start-time
 | 
					
						
							|  |  |  |     // secure connection start time (default 0)
 | 
					
						
							|  |  |  |     //     A DOMHighResTimeStamp.
 | 
					
						
							| 
									
										
										
										
											2025-01-23 09:15:35 -07:00
										 |  |  |     HighResolutionTime::DOMHighResTimeStamp secure_connection_start_time { 0 }; | 
					
						
							| 
									
										
										
										
											2022-10-13 19:19:32 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |     // https://fetch.spec.whatwg.org/#connection-timing-info-alpn-negotiated-protocol
 | 
					
						
							|  |  |  |     // ALPN negotiated protocol (default the empty byte sequence)
 | 
					
						
							|  |  |  |     //     A byte sequence.
 | 
					
						
							| 
									
										
										
										
											2025-02-26 15:46:41 +00:00
										 |  |  |     FlyString alpn_negotiated_protocol; | 
					
						
							| 
									
										
										
										
											2022-10-13 19:19:32 +02:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | } |