summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2018-04-05 11:12:24 +0200
committerJani Heikkinen <jani.heikkinen@qt.io>2018-05-01 12:14:49 +0000
commitb9ca73b931b8f024508bd166daec7a52118c9cd2 (patch)
treef333ecc3235df15dfcdb6262579cf68fbbaa19a8
parent8108c96b286705c407d41038cb33bdef3b11a253 (diff)
Add reserved fields to the cookie filter request
Makes it cleaner to expand it later. Change-Id: I2ccbcf143ca676c3fb89641b40e0848b6dd4bae8 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
-rw-r--r--src/core/api/qwebenginecookiestore.cpp12
-rw-r--r--src/core/api/qwebenginecookiestore.h4
2 files changed, 14 insertions, 2 deletions
diff --git a/src/core/api/qwebenginecookiestore.cpp b/src/core/api/qwebenginecookiestore.cpp
index 600a55a8..9a07c7c7 100644
--- a/src/core/api/qwebenginecookiestore.cpp
+++ b/src/core/api/qwebenginecookiestore.cpp
@@ -201,7 +201,7 @@ bool QWebEngineCookieStorePrivate::canAccessCookies(const QUrl &firstPartyUrl, c
toGurl(firstPartyUrl),
net::registry_controlled_domains::INCLUDE_PRIVATE_REGISTRIES);
- QWebEngineCookieStore::FilterRequest request = { thirdParty, firstPartyUrl, url };
+ QWebEngineCookieStore::FilterRequest request = { firstPartyUrl, url, thirdParty, false, 0};
return filterCallback(request);
}
@@ -408,6 +408,16 @@ void QWebEngineCookieStore::setCookieFilter(std::function<bool(const FilterReque
*/
/*!
+ \variable QWebEngineCookieStore::FilterRequest::_reservedFlag
+ \internal
+*/
+
+/*!
+ \variable QWebEngineCookieStore::FilterRequest::_reservedType
+ \internal
+*/
+
+/*!
\variable QWebEngineCookieStore::FilterRequest::origin
\brief The URL of the script or content accessing a cookie.
diff --git a/src/core/api/qwebenginecookiestore.h b/src/core/api/qwebenginecookiestore.h
index a62765f7..87d7390a 100644
--- a/src/core/api/qwebenginecookiestore.h
+++ b/src/core/api/qwebenginecookiestore.h
@@ -62,9 +62,11 @@ class QWEBENGINE_EXPORT QWebEngineCookieStore : public QObject {
public:
struct FilterRequest {
- bool thirdParty;
QUrl firstPartyUrl;
QUrl origin;
+ bool thirdParty;
+ bool _reservedFlag;
+ ushort _reservedType;
};
virtual ~QWebEngineCookieStore();