summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Bruning <michael.bruning@theqtcompany.com>2016-01-18 12:58:04 +0100
committerMichael BrĂ¼ning <michael.bruning@theqtcompany.com>2016-01-18 12:23:26 +0000
commit9e44ef9432d44cbd326557124036976b056d7868 (patch)
tree95ad46717ff65fc38d2268cac520d81b5053159c /src
parent7ae7b58955b018aa7294aa07d6ff7754af336f4c (diff)
Correct QWebEngineUrlRequestInterceptor documentation.
The documentation was still based on the initial version of the method, where it had to return a boolean value. This is no longer the case and hence removed from the doc. Change-Id: Ica1e4a769631c0169bc5e59abd54c25a416cf4a9 Task-number: QTBUG-50513 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r--src/core/api/qwebengineurlrequestinfo.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/api/qwebengineurlrequestinfo.cpp b/src/core/api/qwebengineurlrequestinfo.cpp
index db5627acb..e53d9afb6 100644
--- a/src/core/api/qwebengineurlrequestinfo.cpp
+++ b/src/core/api/qwebengineurlrequestinfo.cpp
@@ -101,13 +101,11 @@ ASSERT_ENUMS_MATCH(QtWebEngineCore::WebContentsAdapterClient::OtherNavigation, Q
*/
/*!
- \fn bool QWebEngineUrlRequestInterceptor::interceptRequest(QWebEngineUrlRequestInfo &info)
+ \fn void QWebEngineUrlRequestInterceptor::interceptRequest(QWebEngineUrlRequestInfo &info)
Reimplementing this virtual function and setting the interceptor on a profile makes
it possible to intercept URL requests. This function is executed on the IO thread,
and therefore running long tasks here will block networking.
- If this function is only used for inspection, it should return \c false, in which
- case any modification to \a info will be ignored.
\sa QWebEngineProfile::setRequestInterceptor
*/