summaryrefslogtreecommitdiff
path: root/src/core/api/qwebengineurlrequestinfo.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2021-04-19 16:01:24 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2022-06-12 11:46:14 +0000
commit7b3570a96210d7f08453903be503eb33d43e495c (patch)
tree03e8775a94dddecbfb2b870990bdd191f96d46d0 /src/core/api/qwebengineurlrequestinfo.h
parentba4314a4392ac0e86b7d7b47bf5ef01035628db2 (diff)
downloadqtwebengine-7b3570a96210d7f08453903be503eb33d43e495c.tar.gz
Apply url request interceptor on websocket connect as well
Try to match the types as best as we can, and handle the responses. Pick-to: 6.4 Fixes: QTBUG-92932 Change-Id: I01bc85668d2540b79fd2a52796f99d05f161e8a5 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/core/api/qwebengineurlrequestinfo.h')
-rw-r--r--src/core/api/qwebengineurlrequestinfo.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/api/qwebengineurlrequestinfo.h b/src/core/api/qwebengineurlrequestinfo.h
index 658386632..e67402346 100644
--- a/src/core/api/qwebengineurlrequestinfo.h
+++ b/src/core/api/qwebengineurlrequestinfo.h
@@ -46,6 +46,7 @@
#include <QtCore/qurl.h>
namespace QtWebEngineCore {
+class ContentBrowserClientQt;
class InterceptedRequest;
} // namespace QtWebEngineCore
@@ -81,6 +82,7 @@ public:
#ifndef Q_QDOC
ResourceTypeLast = ResourceTypeNavigationPreloadSubFrame,
#endif
+ ResourceTypeWebSocket = 254,
ResourceTypeUnknown = 255
};
@@ -108,6 +110,7 @@ public:
void setHttpHeader(const QByteArray &name, const QByteArray &value);
private:
+ friend class QtWebEngineCore::ContentBrowserClientQt;
friend class QtWebEngineCore::InterceptedRequest;
Q_DISABLE_COPY(QWebEngineUrlRequestInfo)
Q_DECLARE_PRIVATE(QWebEngineUrlRequestInfo)