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
|
|
@ -10,6 +10,7 @@
|
|||
#include <AK/Time.h>
|
||||
#include <LibIPC/Forward.h>
|
||||
#include <LibURL/URL.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
namespace Web::Cookie {
|
||||
|
||||
|
|
@ -25,7 +26,7 @@ enum class Source {
|
|||
Http,
|
||||
};
|
||||
|
||||
struct Cookie {
|
||||
struct WEB_API Cookie {
|
||||
String creation_time_to_string() const;
|
||||
String last_access_time_to_string() const;
|
||||
String expiry_time_to_string() const;
|
||||
|
|
@ -44,20 +45,20 @@ struct Cookie {
|
|||
bool persistent { false };
|
||||
};
|
||||
|
||||
StringView same_site_to_string(SameSite same_site_mode);
|
||||
SameSite same_site_from_string(StringView same_site_mode);
|
||||
WEB_API StringView same_site_to_string(SameSite same_site_mode);
|
||||
WEB_API SameSite same_site_from_string(StringView same_site_mode);
|
||||
|
||||
Optional<String> canonicalize_domain(const URL::URL& url);
|
||||
bool path_matches(StringView request_path, StringView cookie_path);
|
||||
WEB_API Optional<String> canonicalize_domain(const URL::URL& url);
|
||||
WEB_API bool path_matches(StringView request_path, StringView cookie_path);
|
||||
|
||||
}
|
||||
|
||||
namespace IPC {
|
||||
|
||||
template<>
|
||||
ErrorOr<void> encode(Encoder&, Web::Cookie::Cookie const&);
|
||||
WEB_API ErrorOr<void> encode(Encoder&, Web::Cookie::Cookie const&);
|
||||
|
||||
template<>
|
||||
ErrorOr<Web::Cookie::Cookie> decode(Decoder&);
|
||||
WEB_API ErrorOr<Web::Cookie::Cookie> decode(Decoder&);
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
#include <LibIPC/Forward.h>
|
||||
#include <LibURL/Forward.h>
|
||||
#include <LibWeb/Cookie/Cookie.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
||||
namespace Web::Cookie {
|
||||
|
||||
|
|
@ -28,18 +29,18 @@ struct ParsedCookie {
|
|||
};
|
||||
|
||||
Optional<ParsedCookie> parse_cookie(URL::URL const&, StringView cookie_string);
|
||||
bool cookie_contains_invalid_control_character(StringView);
|
||||
bool domain_matches(StringView string, StringView domain_string);
|
||||
String default_path(URL::URL const&);
|
||||
WEB_API bool cookie_contains_invalid_control_character(StringView);
|
||||
WEB_API bool domain_matches(StringView string, StringView domain_string);
|
||||
WEB_API String default_path(URL::URL const&);
|
||||
|
||||
}
|
||||
|
||||
namespace IPC {
|
||||
|
||||
template<>
|
||||
ErrorOr<void> encode(Encoder&, Web::Cookie::ParsedCookie const&);
|
||||
WEB_API ErrorOr<void> encode(Encoder&, Web::Cookie::ParsedCookie const&);
|
||||
|
||||
template<>
|
||||
ErrorOr<Web::Cookie::ParsedCookie> decode(Decoder&);
|
||||
WEB_API ErrorOr<Web::Cookie::ParsedCookie> decode(Decoder&);
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue