| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_HTTP_PROXY_CLIENT_SOCKET_H_ | 5 #ifndef NET_HTTP_PROXY_CLIENT_SOCKET_H_ |
| 6 #define NET_HTTP_PROXY_CLIENT_SOCKET_H_ | 6 #define NET_HTTP_PROXY_CLIENT_SOCKET_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "net/socket/ssl_client_socket.h" | 10 #include "net/socket/ssl_client_socket.h" |
| 11 #include "net/socket/stream_socket.h" | 11 #include "net/socket/stream_socket.h" |
| 12 | 12 |
| 13 class GURL; | 13 class GURL; |
| 14 | 14 |
| 15 namespace net { | 15 namespace net { |
| 16 | 16 |
| 17 class HostPortPair; | 17 class HostPortPair; |
| 18 class HttpAuthController; | 18 class HttpAuthController; |
| 19 class HttpStream; | 19 class HttpStream; |
| 20 class HttpResponseInfo; | 20 class HttpResponseInfo; |
| 21 class HttpRequestHeaders; | 21 class HttpRequestHeaders; |
| 22 struct HttpRequestInfo; | 22 struct HttpRequestInfo; |
| 23 class HttpAuthController; | 23 class HttpAuthController; |
| 24 | 24 |
| 25 class NET_EXPORT_PRIVATE ProxyClientSocket : public StreamSocket { | 25 class NET_EXPORT_PRIVATE ProxyClientSocket : public StreamSocket { |
| 26 public: | 26 public: |
| 27 ProxyClientSocket() {} | 27 ProxyClientSocket() {} |
| 28 virtual ~ProxyClientSocket() {} | 28 ~ProxyClientSocket() override {} |
| 29 | 29 |
| 30 // Returns the HttpResponseInfo (including HTTP Headers) from | 30 // Returns the HttpResponseInfo (including HTTP Headers) from |
| 31 // the response to the CONNECT request. | 31 // the response to the CONNECT request. |
| 32 virtual const HttpResponseInfo* GetConnectResponseInfo() const = 0; | 32 virtual const HttpResponseInfo* GetConnectResponseInfo() const = 0; |
| 33 | 33 |
| 34 // Transfers ownership of a newly created HttpStream to the caller | 34 // Transfers ownership of a newly created HttpStream to the caller |
| 35 // which can be used to read the response body. | 35 // which can be used to read the response body. |
| 36 virtual HttpStream* CreateConnectResponseStream() = 0; | 36 virtual HttpStream* CreateConnectResponseStream() = 0; |
| 37 | 37 |
| 38 // Returns the HttpAuthController which can be used | 38 // Returns the HttpAuthController which can be used |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 static bool SanitizeProxyRedirect(HttpResponseInfo* response, | 82 static bool SanitizeProxyRedirect(HttpResponseInfo* response, |
| 83 const GURL& url); | 83 const GURL& url); |
| 84 | 84 |
| 85 private: | 85 private: |
| 86 DISALLOW_COPY_AND_ASSIGN(ProxyClientSocket); | 86 DISALLOW_COPY_AND_ASSIGN(ProxyClientSocket); |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 } // namespace net | 89 } // namespace net |
| 90 | 90 |
| 91 #endif // NET_HTTP_PROXY_CLIENT_SOCKET_H_ | 91 #endif // NET_HTTP_PROXY_CLIENT_SOCKET_H_ |
| OLD | NEW |