diff options
Diffstat (limited to 'src/core/api/qwebenginecookiestore.h')
-rw-r--r-- | src/core/api/qwebenginecookiestore.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/api/qwebenginecookiestore.h b/src/core/api/qwebenginecookiestore.h index 0e839f73c..a62765f77 100644 --- a/src/core/api/qwebenginecookiestore.h +++ b/src/core/api/qwebenginecookiestore.h @@ -41,13 +41,14 @@ #define QWEBENGINECOOKIESTORE_H #include <QtWebEngineCore/qtwebenginecoreglobal.h> -#include <QtWebEngineCore/qwebenginecallback.h> #include <QtCore/qobject.h> #include <QtCore/qscopedpointer.h> #include <QtCore/qurl.h> #include <QtNetwork/qnetworkcookie.h> +#include <functional> + namespace QtWebEngineCore { class BrowserContextAdapter; class CookieMonsterDelegateQt; @@ -61,15 +62,14 @@ class QWEBENGINE_EXPORT QWebEngineCookieStore : public QObject { public: struct FilterRequest { - bool accepted; - const bool thirdParty; - - const QUrl firstPartyUrl; - const QUrl origin; + bool thirdParty; + QUrl firstPartyUrl; + QUrl origin; }; virtual ~QWebEngineCookieStore(); - void setCookieFilter(const QWebEngineCallback<FilterRequest&> &filterCallback); + void setCookieFilter(const std::function<bool(const FilterRequest &)> &filterCallback); + void setCookieFilter(std::function<bool(const FilterRequest &)> &&filterCallback); void setCookie(const QNetworkCookie &cookie, const QUrl &origin = QUrl()); void deleteCookie(const QNetworkCookie &cookie, const QUrl &origin = QUrl()); void deleteSessionCookies(); |