From 5b14bf342f43bd6cb02ad751db8da851850814bb Mon Sep 17 00:00:00 2001 From: Peter Hartmann Date: Tue, 21 Jan 2014 16:28:01 +0100 Subject: HTTP internals: introduce protocol handlers ... to defer the decision which protocol will be used on a specific channel. This is to allow using the SPDY protocol instead of HTTP (to be implemented in a later commit); which protocol will be used can only be decided after the SSL handshake. Change-Id: I6b538320668fe4994438f0095ecdc445677cf0a6 Reviewed-by: Peter Hartmann --- src/network/access/qhttpnetworkconnectionchannel_p.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/network/access/qhttpnetworkconnectionchannel_p.h') diff --git a/src/network/access/qhttpnetworkconnectionchannel_p.h b/src/network/access/qhttpnetworkconnectionchannel_p.h index c8138b5453..7230eb2543 100644 --- a/src/network/access/qhttpnetworkconnectionchannel_p.h +++ b/src/network/access/qhttpnetworkconnectionchannel_p.h @@ -66,6 +66,7 @@ #include #include +#include #ifndef QT_NO_HTTP @@ -117,6 +118,7 @@ public: QAuthenticator proxyAuthenticator; bool authenticationCredentialsSent; bool proxyCredentialsSent; + QScopedPointer protocolHandler; #ifndef QT_NO_SSL bool ignoreAllSslErrors; QList ignoreSslErrorsList; @@ -193,6 +195,8 @@ public: void _q_sslErrors(const QList &errors); // ssl errors from the socket void _q_encryptedBytesWritten(qint64 bytes); // proceed sending #endif + + friend class QHttpProtocolHandler; }; QT_END_NAMESPACE -- cgit v1.2.3