| OLD | NEW |
| 1 // Copyright (c) 2011 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_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" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 virtual bool IsConnectedAndIdle() const; | 48 virtual bool IsConnectedAndIdle() const; |
| 49 virtual int GetPeerAddress(AddressList* address) const; | 49 virtual int GetPeerAddress(AddressList* address) const; |
| 50 virtual int GetLocalAddress(IPEndPoint* address) const; | 50 virtual int GetLocalAddress(IPEndPoint* address) const; |
| 51 virtual const BoundNetLog& NetLog() const { return net_log_; } | 51 virtual const BoundNetLog& NetLog() const { return net_log_; } |
| 52 virtual void SetSubresourceSpeculation(); | 52 virtual void SetSubresourceSpeculation(); |
| 53 virtual void SetOmniboxSpeculation(); | 53 virtual void SetOmniboxSpeculation(); |
| 54 virtual bool WasEverUsed() const; | 54 virtual bool WasEverUsed() const; |
| 55 virtual bool UsingTCPFastOpen() const; | 55 virtual bool UsingTCPFastOpen() const; |
| 56 virtual int64 NumBytesRead() const; | 56 virtual int64 NumBytesRead() const; |
| 57 virtual base::TimeDelta GetConnectTimeMicros() const; | 57 virtual base::TimeDelta GetConnectTimeMicros() const; |
| 58 virtual NextProto GetNegotiatedProtocol() const OVERRIDE; |
| 58 | 59 |
| 59 // Socket implementation. | 60 // Socket implementation. |
| 60 // Multiple outstanding requests are not supported. | 61 // Multiple outstanding requests are not supported. |
| 61 // Full duplex mode (reading and writing at the same time) is supported | 62 // Full duplex mode (reading and writing at the same time) is supported |
| 62 virtual int Read(IOBuffer* buf, int buf_len, | 63 virtual int Read(IOBuffer* buf, int buf_len, |
| 63 const CompletionCallback& callback); | 64 const CompletionCallback& callback); |
| 64 virtual int Write(IOBuffer* buf, int buf_len, | 65 virtual int Write(IOBuffer* buf, int buf_len, |
| 65 const CompletionCallback& callback); | 66 const CompletionCallback& callback); |
| 66 | 67 |
| 67 virtual bool SetReceiveBufferSize(int32 size); | 68 virtual bool SetReceiveBufferSize(int32 size); |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 base::TimeTicks connect_start_time_; | 149 base::TimeTicks connect_start_time_; |
| 149 base::TimeDelta connect_time_micros_; | 150 base::TimeDelta connect_time_micros_; |
| 150 int64 num_bytes_read_; | 151 int64 num_bytes_read_; |
| 151 | 152 |
| 152 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketWin); | 153 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketWin); |
| 153 }; | 154 }; |
| 154 | 155 |
| 155 } // namespace net | 156 } // namespace net |
| 156 | 157 |
| 157 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_WIN_H_ | 158 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_WIN_H_ |
| OLD | NEW |