| 
									
										
										
										
											2023-06-18 21:21:34 +12:00
										 |  |  | /*
 | 
					
						
							| 
									
										
										
										
											2023-07-15 22:33:22 +12:00
										 |  |  |  * Copyright (c) 2023, Shannon Booth <shannon@serenityos.org> | 
					
						
							| 
									
										
										
										
											2023-06-18 21:21:34 +12:00
										 |  |  |  * | 
					
						
							|  |  |  |  * SPDX-License-Identifier: BSD-2-Clause | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #pragma once
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <AK/Optional.h>
 | 
					
						
							| 
									
										
										
										
											2024-11-15 04:01:23 +13:00
										 |  |  | #include <LibGC/Ptr.h>
 | 
					
						
							| 
									
										
										
										
											2023-06-18 21:21:34 +12:00
										 |  |  | #include <LibWeb/WebIDL/CallbackType.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | namespace Web::Streams { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // https://streams.spec.whatwg.org/#dictdef-queuingstrategy
 | 
					
						
							|  |  |  | struct QueuingStrategy { | 
					
						
							|  |  |  |     Optional<double> high_water_mark; | 
					
						
							| 
									
										
										
										
											2024-11-15 04:01:23 +13:00
										 |  |  |     GC::Ptr<WebIDL::CallbackType> size; | 
					
						
							| 
									
										
										
										
											2023-06-18 21:21:34 +12:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | } |