mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-31 13:20:59 +00:00 
			
		
		
		
	 4629f2e4ad
			
		
	
	
		4629f2e4ad
		
	
	
	
	
		
			
			This namespace will be used for all interfaces defined in the URL specification, like URL and URLSearchParams. This has the unfortunate side-effect of requiring us to use the fully qualified AK::URL name whenever we want to refer to the AK class, so this commit also fixes all such references.
		
			
				
	
	
		
			30 lines
		
	
	
	
		
			584 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
	
		
			584 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <AK/RefCounted.h>
 | |
| #include <AK/URL.h>
 | |
| 
 | |
| namespace Web::HTML {
 | |
| 
 | |
| // https://html.spec.whatwg.org/multipage/webappapis.html#concept-script
 | |
| class Script : public RefCounted<Script> {
 | |
| public:
 | |
|     virtual ~Script();
 | |
| 
 | |
|     AK::URL const& base_url() const { return m_base_url; }
 | |
|     String const& filename() const { return m_filename; }
 | |
| 
 | |
| protected:
 | |
|     Script(AK::URL base_url, String filename);
 | |
| 
 | |
| private:
 | |
|     AK::URL m_base_url;
 | |
|     String m_filename;
 | |
| };
 | |
| 
 | |
| }
 |