| 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_TCP_CLIENT_SOCKET_WIN_H_ | 5 #ifndef NET_SOCKET_TCP_CLIENT_SOCKET_WIN_H_ |
| 6 #define NET_SOCKET_TCP_CLIENT_SOCKET_WIN_H_ | 6 #define NET_SOCKET_TCP_CLIENT_SOCKET_WIN_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <winsock2.h> | 9 #include <winsock2.h> |
| 10 | 10 |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/threading/non_thread_safe.h" | 12 #include "base/threading/non_thread_safe.h" |
| 13 #include "net/base/address_list.h" | 13 #include "net/base/address_list.h" |
| 14 #include "net/base/completion_callback.h" | 14 #include "net/base/completion_callback.h" |
| 15 #include "net/base/net_log.h" | 15 #include "net/base/net_log.h" |
| 16 #include "net/socket/stream_socket.h" | 16 #include "net/socket/stream_socket.h" |
| 17 | 17 |
| 18 namespace net { | 18 namespace net { |
| 19 | 19 |
| 20 class BoundNetLog; | 20 class BoundNetLog; |
| 21 | 21 |
| 22 class NET_API TCPClientSocketWin : public StreamSocket, | 22 class NET_EXPORT TCPClientSocketWin : public StreamSocket, |
| 23 NON_EXPORTED_BASE(base::NonThreadSafe) { | 23 NON_EXPORTED_BASE(base::NonThreadSafe) { |
| 24 public: | 24 public: |
| 25 // The IP address(es) and port number to connect to. The TCP socket will try | 25 // The IP address(es) and port number to connect to. The TCP socket will try |
| 26 // each IP address in the list until it succeeds in establishing a | 26 // each IP address in the list until it succeeds in establishing a |
| 27 // connection. | 27 // connection. |
| 28 TCPClientSocketWin(const AddressList& addresses, | 28 TCPClientSocketWin(const AddressList& addresses, |
| 29 net::NetLog* net_log, | 29 net::NetLog* net_log, |
| 30 const net::NetLog::Source& source); | 30 const net::NetLog::Source& source); |
| 31 | 31 |
| 32 virtual ~TCPClientSocketWin(); | 32 virtual ~TCPClientSocketWin(); |
| 33 | 33 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 base::TimeTicks connect_start_time_; | 146 base::TimeTicks connect_start_time_; |
| 147 base::TimeDelta connect_time_micros_; | 147 base::TimeDelta connect_time_micros_; |
| 148 int64 num_bytes_read_; | 148 int64 num_bytes_read_; |
| 149 | 149 |
| 150 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketWin); | 150 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketWin); |
| 151 }; | 151 }; |
| 152 | 152 |
| 153 } // namespace net | 153 } // namespace net |
| 154 | 154 |
| 155 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_WIN_H_ | 155 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_WIN_H_ |
| OLD | NEW |