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