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 "base/macros.h" | 10 #include "base/macros.h" |
11 #include "net/socket/ssl_client_socket.h" | 11 #include "net/socket/ssl_client_socket.h" |
12 #include "net/socket/stream_socket.h" | 12 #include "net/socket/stream_socket.h" |
13 | 13 |
14 class GURL; | 14 class GURL; |
15 | 15 |
16 namespace net { | 16 namespace net { |
17 | 17 |
18 class HostPortPair; | 18 class HostPortPair; |
19 class HttpAuthController; | 19 class HttpAuthController; |
20 class HttpStream; | 20 class HttpStream; |
21 class HttpResponseInfo; | 21 class HttpResponseInfo; |
22 class HttpRequestHeaders; | 22 class HttpRequestHeaders; |
23 struct HttpRequestInfo; | 23 struct HttpRequestInfo; |
24 class HttpAuthController; | 24 class HttpAuthController; |
| 25 class NetLogWithSource; |
25 | 26 |
26 class NET_EXPORT_PRIVATE ProxyClientSocket : public StreamSocket { | 27 class NET_EXPORT_PRIVATE ProxyClientSocket : public StreamSocket { |
27 public: | 28 public: |
28 ProxyClientSocket() {} | 29 ProxyClientSocket() {} |
29 ~ProxyClientSocket() override {} | 30 ~ProxyClientSocket() override {} |
30 | 31 |
31 // Returns the HttpResponseInfo (including HTTP Headers) from | 32 // Returns the HttpResponseInfo (including HTTP Headers) from |
32 // the response to the CONNECT request. | 33 // the response to the CONNECT request. |
33 virtual const HttpResponseInfo* GetConnectResponseInfo() const = 0; | 34 virtual const HttpResponseInfo* GetConnectResponseInfo() const = 0; |
34 | 35 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 // fail. | 89 // fail. |
89 static bool SanitizeProxyRedirect(HttpResponseInfo* response); | 90 static bool SanitizeProxyRedirect(HttpResponseInfo* response); |
90 | 91 |
91 private: | 92 private: |
92 DISALLOW_COPY_AND_ASSIGN(ProxyClientSocket); | 93 DISALLOW_COPY_AND_ASSIGN(ProxyClientSocket); |
93 }; | 94 }; |
94 | 95 |
95 } // namespace net | 96 } // namespace net |
96 | 97 |
97 #endif // NET_HTTP_PROXY_CLIENT_SOCKET_H_ | 98 #endif // NET_HTTP_PROXY_CLIENT_SOCKET_H_ |
OLD | NEW |