| 
									
										
										
										
											2022-10-25 19:36:50 +01:00
										 |  |  | /*
 | 
					
						
							|  |  |  |  * Copyright (c) 2022, Linus Groh <linusg@serenityos.org> | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * SPDX-License-Identifier: BSD-2-Clause | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #pragma once
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-02-28 18:12:44 +00:00
										 |  |  | #include <AK/Variant.h>
 | 
					
						
							| 
									
										
										
										
											2022-10-25 19:36:50 +01:00
										 |  |  | #include <LibJS/Forward.h>
 | 
					
						
							| 
									
										
										
										
											2023-02-28 18:12:44 +00:00
										 |  |  | #include <LibJS/Heap/GCPtr.h>
 | 
					
						
							| 
									
										
										
										
											2022-10-25 19:36:50 +01:00
										 |  |  | #include <LibJS/SafeFunction.h>
 | 
					
						
							| 
									
										
										
										
											2024-03-22 15:28:41 -04:00
										 |  |  | #include <LibWeb/Forward.h>
 | 
					
						
							| 
									
										
										
										
											2022-10-25 19:36:50 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | namespace Web::Fetch::Infrastructure { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-02-28 18:12:44 +00:00
										 |  |  | // FIXME: 'or a parallel queue'
 | 
					
						
							|  |  |  | using TaskDestination = Variant<Empty, JS::NonnullGCPtr<JS::Object>>; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-03-22 15:28:41 -04:00
										 |  |  | int queue_fetch_task(JS::Object&, JS::SafeFunction<void()>); | 
					
						
							|  |  |  | int queue_fetch_task(JS::NonnullGCPtr<FetchController>, JS::Object&, JS::SafeFunction<void()>); | 
					
						
							| 
									
										
										
										
											2022-10-25 19:36:50 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | } |