diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-04-19 16:01:24 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2022-06-12 11:46:14 +0000 |
commit | 7b3570a96210d7f08453903be503eb33d43e495c (patch) | |
tree | 03e8775a94dddecbfb2b870990bdd191f96d46d0 /src/core/api/qwebengineurlrequestinfo.h | |
parent | ba4314a4392ac0e86b7d7b47bf5ef01035628db2 (diff) | |
download | qtwebengine-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.h | 3 |
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) |