From 184ce9821a8f096781e380d4a0fb1f30e4f374e7 Mon Sep 17 00:00:00 2001 From: Andras Becsi Date: Fri, 14 Aug 2015 18:46:46 +0200 Subject: Add documentation for cookie API and request interception in core Change-Id: I6908ff3da9e0c78c3cf3d9b27d6c532029423d24 Reviewed-by: Leena Miettinen Reviewed-by: Allan Sandfeld Jensen --- src/webenginewidgets/api/qwebengineprofile.cpp | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'src/webenginewidgets/api/qwebengineprofile.cpp') 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); -- cgit v1.2.3