| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SOCKET_WIN_H_ | 5 #ifndef NET_SOCKET_TCP_SOCKET_WIN_H_ |
| 6 #define NET_SOCKET_TCP_SOCKET_WIN_H_ | 6 #define NET_SOCKET_TCP_SOCKET_WIN_H_ |
| 7 | 7 |
| 8 #include <winsock2.h> | 8 #include <winsock2.h> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 // start/end of a series of connect attempts itself. | 94 // start/end of a series of connect attempts itself. |
| 95 void StartLoggingMultipleConnectAttempts(const AddressList& addresses); | 95 void StartLoggingMultipleConnectAttempts(const AddressList& addresses); |
| 96 void EndLoggingMultipleConnectAttempts(int net_error); | 96 void EndLoggingMultipleConnectAttempts(int net_error); |
| 97 | 97 |
| 98 const BoundNetLog& net_log() const { return net_log_; } | 98 const BoundNetLog& net_log() const { return net_log_; } |
| 99 | 99 |
| 100 private: | 100 private: |
| 101 class Core; | 101 class Core; |
| 102 | 102 |
| 103 // base::ObjectWatcher::Delegate implementation. | 103 // base::ObjectWatcher::Delegate implementation. |
| 104 virtual void OnObjectSignaled(HANDLE object) OVERRIDE; | 104 virtual void OnObjectSignaled(HANDLE object) override; |
| 105 | 105 |
| 106 int AcceptInternal(scoped_ptr<TCPSocketWin>* socket, | 106 int AcceptInternal(scoped_ptr<TCPSocketWin>* socket, |
| 107 IPEndPoint* address); | 107 IPEndPoint* address); |
| 108 | 108 |
| 109 int DoConnect(); | 109 int DoConnect(); |
| 110 void DoConnectComplete(int result); | 110 void DoConnectComplete(int result); |
| 111 | 111 |
| 112 void LogConnectBegin(const AddressList& addresses); | 112 void LogConnectBegin(const AddressList& addresses); |
| 113 void LogConnectEnd(int net_error); | 113 void LogConnectEnd(int net_error); |
| 114 | 114 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 bool logging_multiple_connect_attempts_; | 149 bool logging_multiple_connect_attempts_; |
| 150 | 150 |
| 151 BoundNetLog net_log_; | 151 BoundNetLog net_log_; |
| 152 | 152 |
| 153 DISALLOW_COPY_AND_ASSIGN(TCPSocketWin); | 153 DISALLOW_COPY_AND_ASSIGN(TCPSocketWin); |
| 154 }; | 154 }; |
| 155 | 155 |
| 156 } // namespace net | 156 } // namespace net |
| 157 | 157 |
| 158 #endif // NET_SOCKET_TCP_SOCKET_WIN_H_ | 158 #endif // NET_SOCKET_TCP_SOCKET_WIN_H_ |
| OLD | NEW |