summaryrefslogtreecommitdiffstats
path: root/src/webenginewidgets/api/qwebengineprofile.cpp
diff options
context:
space:
mode:
authorAndras Becsi <andras.becsi@theqtcompany.com>2015-08-14 18:46:46 +0200
committerAndras Becsi <andras.becsi@theqtcompany.com>2015-08-20 11:42:42 +0000
commit184ce9821a8f096781e380d4a0fb1f30e4f374e7 (patch)
tree5fdbd0f6bd7bbb693cabd3eb2da68ca1d2654b87 /src/webenginewidgets/api/qwebengineprofile.cpp
parent38f35a54937f727d08dc122928ce6130ff66000b (diff)
Add documentation for cookie API and request interception in core
Change-Id: I6908ff3da9e0c78c3cf3d9b27d6c532029423d24 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
Diffstat (limited to 'src/webenginewidgets/api/qwebengineprofile.cpp')
-rw-r--r--src/webenginewidgets/api/qwebengineprofile.cpp19
1 files changed, 15 insertions, 4 deletions
diff --git a/src/webenginewidgets/api/qwebengineprofile.cpp b/src/webenginewidgets/api/qwebengineprofile.cpp
index f4d10a71c..db8c0dc89 100644
--- a/src/webenginewidgets/api/qwebengineprofile.cpp
+++ b/src/webenginewidgets/api/qwebengineprofile.cpp
@@ -434,8 +434,9 @@ void QWebEngineProfile::setHttpCacheMaximumSize(int maxSize)
}
/*!
- Returns the cookie store client for this browser.
+ Returns the cookie store client singleton, if one has been set.
*/
+
QWebEngineCookieStoreClient* QWebEngineProfile::cookieStoreClient()
{
Q_D(QWebEngineProfile);
@@ -443,8 +444,13 @@ QWebEngineCookieStoreClient* QWebEngineProfile::cookieStoreClient()
}
/*!
- Sets the cookie store client to \a client.
+ Registers a cookie store client singleton \a client to access Chromium's cookies.
+
+ The profile does not take ownership of the pointer.
+
+ \sa QtWebEngineCore::QWebEngineCookieStoreClient
*/
+
void QWebEngineProfile::setCookieStoreClient(QWebEngineCookieStoreClient *client)
{
Q_D(QWebEngineProfile);
@@ -452,8 +458,13 @@ void QWebEngineProfile::setCookieStoreClient(QWebEngineCookieStoreClient *client
}
/*!
- Sets the request interceptor to \a interceptor.
- */
+ Registers a request interceptor singleton \a interceptor to intercept URL requests.
+
+ The profile does not take ownership of the pointer.
+
+ \sa QtWebEngineCore::QWebEngineUrlRequestInfo
+*/
+
void QWebEngineProfile::setRequestInterceptor(QWebEngineUrlRequestInterceptor *interceptor)
{
Q_D(QWebEngineProfile);