mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-30 21:01:00 +00:00 
			
		
		
		
	 a1c8c754eb
			
		
	
	
		a1c8c754eb
		
	
	
	
	
		
			
			This makes it consistent with how http:// callbacks are fired. It would probably be fine to have file:// be synchronous, but at the same time it's nice to have consistency.
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			300 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			300 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <AK/Function.h>
 | |
| #include <AK/URL.h>
 | |
| #include <LibCore/CObject.h>
 | |
| 
 | |
| class ResourceLoader : public CObject {
 | |
|     C_OBJECT(ResourceLoader)
 | |
| public:
 | |
|     static ResourceLoader& the();
 | |
| 
 | |
|     void load(const URL&, Function<void(const ByteBuffer&)>);
 | |
| 
 | |
| private:
 | |
|     ResourceLoader() {}
 | |
| };
 |