diff --git a/src/core/api/qwebenginequotarequest.h b/src/core/api/qwebenginequotarequest.h index dbba6ad82e18baf091e8532428fc87d10c02e79c..be71635c19310e2f21e69f7627d236bada95e550 100644 --- a/src/core/api/qwebenginequotarequest.h +++ b/src/core/api/qwebenginequotarequest.h @@ -45,7 +45,8 @@ #include <QtWebEngineCore/qtwebenginecoreglobal.h> namespace QtWebEngineCore { - class QuotaRequestController; +class QuotaPermissionContextQt; +class QuotaRequestController; } QT_BEGIN_NAMESPACE @@ -56,7 +57,6 @@ class QWEBENGINE_EXPORT QWebEngineQuotaRequest { Q_PROPERTY(qint64 requestedSize READ requestedSize CONSTANT FINAL) public: QWebEngineQuotaRequest() {} - QWebEngineQuotaRequest(QSharedPointer<QtWebEngineCore::QuotaRequestController>); Q_INVOKABLE void accept(); Q_INVOKABLE void reject(); QUrl origin() const; @@ -64,6 +64,8 @@ public: bool operator==(const QWebEngineQuotaRequest &that) const { return d_ptr == that.d_ptr; } bool operator!=(const QWebEngineQuotaRequest &that) const { return d_ptr != that.d_ptr; } private: + QWebEngineQuotaRequest(QSharedPointer<QtWebEngineCore::QuotaRequestController>); + friend QtWebEngineCore::QuotaPermissionContextQt; QSharedPointer<QtWebEngineCore::QuotaRequestController> d_ptr; }; diff --git a/src/core/api/qwebengineregisterprotocolhandlerrequest.h b/src/core/api/qwebengineregisterprotocolhandlerrequest.h index 936043b4d9df4ccdfd3a8adf4b927eeccdbd2ac5..b3707bc59413f978c45c5b714cc469eee7ea9424 100644 --- a/src/core/api/qwebengineregisterprotocolhandlerrequest.h +++ b/src/core/api/qwebengineregisterprotocolhandlerrequest.h @@ -45,7 +45,8 @@ #include <QtWebEngineCore/qtwebenginecoreglobal.h> namespace QtWebEngineCore { - class RegisterProtocolHandlerRequestController; +class RegisterProtocolHandlerRequestController; +class WebContentsDelegateQt; } QT_BEGIN_NAMESPACE @@ -56,8 +57,6 @@ class QWEBENGINE_EXPORT QWebEngineRegisterProtocolHandlerRequest { Q_PROPERTY(QString scheme READ scheme CONSTANT FINAL) public: QWebEngineRegisterProtocolHandlerRequest() {} - QWebEngineRegisterProtocolHandlerRequest( - QSharedPointer<QtWebEngineCore::RegisterProtocolHandlerRequestController>); Q_INVOKABLE void accept(); Q_INVOKABLE void reject(); QUrl origin() const; @@ -65,6 +64,9 @@ public: bool operator==(const QWebEngineRegisterProtocolHandlerRequest &that) const { return d_ptr == that.d_ptr; } bool operator!=(const QWebEngineRegisterProtocolHandlerRequest &that) const { return d_ptr != that.d_ptr; } private: + QWebEngineRegisterProtocolHandlerRequest( + QSharedPointer<QtWebEngineCore::RegisterProtocolHandlerRequestController>); + friend QtWebEngineCore::WebContentsDelegateQt; QSharedPointer<QtWebEngineCore::RegisterProtocolHandlerRequestController> d_ptr; };