mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-30 15:02:56 +00:00
LibHTML: Add ResourceLoader to support protocol-agnostic URL loading
We now support loading both file:// and http:// URLs. Feel free to visit http://www.serenityos.org/ and enjoy the fancy good times. :^)
This commit is contained in:
parent
3fdc595e0c
commit
3be6d1aff0
Notes:
sideshowbarker
2024-07-19 11:45:12 +09:00
Author: https://github.com/awesomekling
Commit: 3be6d1aff0
6 changed files with 89 additions and 18 deletions
14
Libraries/LibHTML/ResourceLoader.h
Normal file
14
Libraries/LibHTML/ResourceLoader.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/Function.h>
|
||||
#include <AK/URL.h>
|
||||
|
||||
class ResourceLoader {
|
||||
public:
|
||||
static ResourceLoader& the();
|
||||
|
||||
void load(const URL&, Function<void(const ByteBuffer&)>);
|
||||
|
||||
private:
|
||||
ResourceLoader() {}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue