summaryrefslogtreecommitdiff
path: root/Ladybird
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2022-11-11 12:01:51 -0500
committerAndrew Kaster <andrewdkaster@gmail.com>2022-12-25 07:58:58 -0700
commitfcc0530e26b50216d7d78567fa93a11107cc2ef1 (patch)
treeac010caabd9693879f797a8b6f2fa07da21909bb /Ladybird
parente80147afbacac1d6072143b5314f84e16289b497 (diff)
downloadserenity-fcc0530e26b50216d7d78567fa93a11107cc2ef1.zip
Ladybird: Stub out new cookie WebView::ViewImplementation APIs
These were added for WebDriver, which doesn't have a Ladybird implementation yet.
Diffstat (limited to 'Ladybird')
-rw-r--r--Ladybird/WebContentView.cpp14
-rw-r--r--Ladybird/WebContentView.h3
2 files changed, 17 insertions, 0 deletions
diff --git a/Ladybird/WebContentView.cpp b/Ladybird/WebContentView.cpp
index 95a5abe442..18e9a16d8b 100644
--- a/Ladybird/WebContentView.cpp
+++ b/Ladybird/WebContentView.cpp
@@ -885,6 +885,16 @@ void WebContentView::notify_server_did_change_favicon(Gfx::Bitmap const& bitmap)
emit favicon_changed(QIcon(qpixmap));
}
+Vector<Web::Cookie::Cookie> WebContentView::notify_server_did_request_all_cookies(Badge<WebContentClient>, AK::URL const&)
+{
+ return {};
+}
+
+Optional<Web::Cookie::Cookie> WebContentView::notify_server_did_request_named_cookie(Badge<WebContentClient>, AK::URL const&, String const&)
+{
+ return {};
+}
+
String WebContentView::notify_server_did_request_cookie(Badge<WebContentClient>, AK::URL const& url, Web::Cookie::Source source)
{
if (on_get_cookie)
@@ -898,6 +908,10 @@ void WebContentView::notify_server_did_set_cookie(Badge<WebContentClient>, AK::U
on_set_cookie(url, cookie, source);
}
+void WebContentView::notify_server_did_update_cookie(Badge<WebContentClient>, AK::URL const&, Web::Cookie::Cookie const&)
+{
+}
+
void WebContentView::notify_server_did_update_resource_count(i32 count_waiting)
{
// FIXME
diff --git a/Ladybird/WebContentView.h b/Ladybird/WebContentView.h
index 9171af333a..2a8b0baa60 100644
--- a/Ladybird/WebContentView.h
+++ b/Ladybird/WebContentView.h
@@ -134,8 +134,11 @@ public:
virtual void notify_server_did_output_js_console_message(i32 message_index) override;
virtual void notify_server_did_get_js_console_messages(i32 start_index, Vector<String> const& message_types, Vector<String> const& messages) override;
virtual void notify_server_did_change_favicon(Gfx::Bitmap const& favicon) override;
+ virtual Vector<Web::Cookie::Cookie> notify_server_did_request_all_cookies(Badge<WebContentClient>, AK::URL const& url) override;
+ virtual Optional<Web::Cookie::Cookie> notify_server_did_request_named_cookie(Badge<WebContentClient>, AK::URL const& url, String const& name) override;
virtual String notify_server_did_request_cookie(Badge<WebContentClient>, const AK::URL& url, Web::Cookie::Source source) override;
virtual void notify_server_did_set_cookie(Badge<WebContentClient>, const AK::URL& url, Web::Cookie::ParsedCookie const& cookie, Web::Cookie::Source source) override;
+ virtual void notify_server_did_update_cookie(Badge<WebContentClient>, AK::URL const& url, Web::Cookie::Cookie const& cookie) override;
virtual void notify_server_did_update_resource_count(i32 count_waiting) override;
virtual void notify_server_did_request_restore_window() override;
virtual Gfx::IntPoint notify_server_did_request_reposition_window(Gfx::IntPoint const&) override;