diff options
author | Kai Koehne <kai.koehne@theqtcompany.com> | 2015-09-25 13:27:58 +0200 |
---|---|---|
committer | Kai Koehne <kai.koehne@theqtcompany.com> | 2015-10-19 08:37:17 +0000 |
commit | 38a426f21c0d6e47bdc05e5541b79c48cf967a0c (patch) | |
tree | 34769fbf91f69a27316fa09a9183f137e874c008 /src/webenginewidgets/api | |
parent | d9d1cc3ec8931cecc0b0dcb5d5d184cdb53ff434 (diff) |
Do not require to subclass/install QWebEngineCookieStoreClient
The class has only setters and getters, except for the virtual
acceptCookie method. By replacing this method with a setCookieFilter
callback we can avoid the need of users to subclass the client.
Change-Id: Id78c01fc103b8d9cc267594527239b598e8975f1
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
Diffstat (limited to 'src/webenginewidgets/api')
-rw-r--r-- | src/webenginewidgets/api/qwebengineprofile.cpp | 13 | ||||
-rw-r--r-- | src/webenginewidgets/api/qwebengineprofile.h | 1 |
2 files changed, 0 insertions, 14 deletions
diff --git a/src/webenginewidgets/api/qwebengineprofile.cpp b/src/webenginewidgets/api/qwebengineprofile.cpp index 0d9e400ed..2edebdfeb 100644 --- a/src/webenginewidgets/api/qwebengineprofile.cpp +++ b/src/webenginewidgets/api/qwebengineprofile.cpp @@ -443,19 +443,6 @@ QWebEngineCookieStoreClient* QWebEngineProfile::cookieStoreClient() return d->browserContext()->cookieStoreClient(); } -/*! - Registers a cookie store client singleton \a client to access Chromium's cookies. - - The profile does not take ownership of the pointer. - - \sa QWebEngineCookieStoreClient -*/ - -void QWebEngineProfile::setCookieStoreClient(QWebEngineCookieStoreClient *client) -{ - Q_D(QWebEngineProfile); - d->browserContext()->setCookieStoreClient(client); -} /*! Registers a request interceptor singleton \a interceptor to intercept URL requests. diff --git a/src/webenginewidgets/api/qwebengineprofile.h b/src/webenginewidgets/api/qwebengineprofile.h index 4bed186fb..7e03c065c 100644 --- a/src/webenginewidgets/api/qwebengineprofile.h +++ b/src/webenginewidgets/api/qwebengineprofile.h @@ -100,7 +100,6 @@ public: void setHttpCacheMaximumSize(int maxSize); QWebEngineCookieStoreClient* cookieStoreClient(); - void setCookieStoreClient(QWebEngineCookieStoreClient *client); void setRequestInterceptor(QWebEngineUrlRequestInterceptor *interceptor); void clearAllVisitedLinks(); |