OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_SOCKET_SOCKS_CLIENT_SOCKET_H_ | 5 #ifndef NET_SOCKET_SOCKS_CLIENT_SOCKET_H_ |
6 #define NET_SOCKET_SOCKS_CLIENT_SOCKET_H_ | 6 #define NET_SOCKET_SOCKS_CLIENT_SOCKET_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
16 #include "net/base/address_list.h" | 16 #include "net/base/address_list.h" |
17 #include "net/base/completion_callback.h" | 17 #include "net/base/completion_callback.h" |
18 #include "net/base/host_resolver.h" | 18 #include "net/base/host_resolver.h" |
19 #include "net/base/net_errors.h" | 19 #include "net/base/net_errors.h" |
20 #include "net/base/net_log.h" | 20 #include "net/base/net_log.h" |
| 21 #include "net/base/single_request_host_resolver.h" |
21 #include "net/socket/stream_socket.h" | 22 #include "net/socket/stream_socket.h" |
22 | 23 |
23 namespace net { | 24 namespace net { |
24 | 25 |
25 class ClientSocketHandle; | 26 class ClientSocketHandle; |
26 class BoundNetLog; | 27 class BoundNetLog; |
27 | 28 |
28 // The SOCKS client socket implementation | 29 // The SOCKS client socket implementation |
29 class NET_TEST SOCKSClientSocket : public StreamSocket { | 30 class NET_TEST SOCKSClientSocket : public StreamSocket { |
30 public: | 31 public: |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 HostResolver::RequestInfo host_request_info_; | 130 HostResolver::RequestInfo host_request_info_; |
130 | 131 |
131 BoundNetLog net_log_; | 132 BoundNetLog net_log_; |
132 | 133 |
133 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocket); | 134 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocket); |
134 }; | 135 }; |
135 | 136 |
136 } // namespace net | 137 } // namespace net |
137 | 138 |
138 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_H_ | 139 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_H_ |
OLD | NEW |