mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
LibWeb: Enable EXPLICIT_SYMBOL_EXPORT
This commit is contained in:
parent
94a3a7d9a1
commit
3df8e00d91
Notes:
github-actions[bot]
2025-08-23 22:05:58 +00:00
Author: https://github.com/ayeteadoe
Commit: 3df8e00d91
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5229
Reviewed-by: https://github.com/ADKaster ✅
256 changed files with 728 additions and 512 deletions
|
|
@ -9,6 +9,7 @@
|
|||
|
||||
#include <AK/HashMap.h>
|
||||
#include <AK/String.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
namespace Web::MimeSniff {
|
||||
|
||||
|
|
@ -36,7 +37,7 @@ static constexpr Array s_javascript_mime_type_essence_strings = {
|
|||
};
|
||||
|
||||
// https://mimesniff.spec.whatwg.org/#mime-type
|
||||
class MimeType {
|
||||
class WEB_API MimeType {
|
||||
public:
|
||||
[[nodiscard]] static MimeType create(String type, String subtype);
|
||||
[[nodiscard]] static Optional<MimeType> parse(StringView);
|
||||
|
|
@ -88,6 +89,6 @@ private:
|
|||
String m_cached_essence;
|
||||
};
|
||||
|
||||
String minimise_a_supported_mime_type(MimeType const&);
|
||||
WEB_API String minimise_a_supported_mime_type(MimeType const&);
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/MimeSniff/MimeType.h>
|
||||
|
||||
namespace Web::MimeSniff {
|
||||
|
|
@ -30,7 +31,7 @@ struct SniffingConfiguration {
|
|||
};
|
||||
|
||||
// https://mimesniff.spec.whatwg.org/#resource
|
||||
class Resource {
|
||||
class WEB_API Resource {
|
||||
public:
|
||||
static Resource create(ReadonlyBytes data, SniffingConfiguration configuration = {});
|
||||
static MimeType sniff(ReadonlyBytes data, SniffingConfiguration configuration = {});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue