diff options
author | Andras Becsi <andras.becsi@theqtcompany.com> | 2015-08-17 17:21:03 +0200 |
---|---|---|
committer | Andras Becsi <becsi.andras@gmail.com> | 2015-08-27 12:40:28 +0000 |
commit | 8cd47a6df005ae61dbc366b884bebeb0ec49e889 (patch) | |
tree | 123e2357c7c666a61f6e13a6deed95488f73a24d /src/core/cookie_monster_delegate_qt.h | |
parent | 93d3a21009b601d9fcee1c9faa2324625d3b5ed1 (diff) |
Add support for blocking cookies
This patch adds acceptCookie virtual function that is
called when a request wants to set a new cookie and
can be overridden to intercept or block these cookies.
Change-Id: I8b932d4176ffc3c0ac48b1656486d5492cabaefd
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
Diffstat (limited to 'src/core/cookie_monster_delegate_qt.h')
-rw-r--r-- | src/core/cookie_monster_delegate_qt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/cookie_monster_delegate_qt.h b/src/core/cookie_monster_delegate_qt.h index e5e295853..7592d57fa 100644 --- a/src/core/cookie_monster_delegate_qt.h +++ b/src/core/cookie_monster_delegate_qt.h @@ -80,6 +80,7 @@ public: void setCookieMonster(net::CookieMonster* monster); void setClient(QWebEngineCookieStoreClient *client); + bool canSetCookie(const QUrl &firstPartyUrl, const QByteArray &cookieLine, const QUrl &url); void OnCookieChanged(const net::CanonicalCookie& cookie, bool removed, ChangeCause cause) override; }; |