| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 // ClientSocket methods: | 33 // ClientSocket methods: |
| 34 virtual int Connect(CompletionCallback* callback); | 34 virtual int Connect(CompletionCallback* callback); |
| 35 virtual void Disconnect(); | 35 virtual void Disconnect(); |
| 36 virtual bool IsConnected() const; | 36 virtual bool IsConnected() const; |
| 37 virtual bool IsConnectedAndIdle() const; | 37 virtual bool IsConnectedAndIdle() const; |
| 38 virtual int GetPeerAddress(AddressList* address) const; | 38 virtual int GetPeerAddress(AddressList* address) const; |
| 39 virtual const BoundNetLog& NetLog() const { return net_log_; } | 39 virtual const BoundNetLog& NetLog() const { return net_log_; } |
| 40 virtual void SetSubresourceSpeculation(); | 40 virtual void SetSubresourceSpeculation(); |
| 41 virtual void SetOmniboxSpeculation(); | 41 virtual void SetOmniboxSpeculation(); |
| 42 virtual bool WasEverUsed() const; | 42 virtual bool WasEverUsed() const; |
| 43 virtual bool UsingTCPFastOpen() const; |
| 43 | 44 |
| 44 // Socket methods: | 45 // Socket methods: |
| 45 // Multiple outstanding requests are not supported. | 46 // Multiple outstanding requests are not supported. |
| 46 // Full duplex mode (reading and writing at the same time) is supported | 47 // Full duplex mode (reading and writing at the same time) is supported |
| 47 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 48 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
| 48 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 49 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
| 49 | 50 |
| 50 virtual bool SetReceiveBufferSize(int32 size); | 51 virtual bool SetReceiveBufferSize(int32 size); |
| 51 virtual bool SetSendBufferSize(int32 size); | 52 virtual bool SetSendBufferSize(int32 size); |
| 52 | 53 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 // Record of connectivity and transmissions, for use in speculative connection | 121 // Record of connectivity and transmissions, for use in speculative connection |
| 121 // histograms. | 122 // histograms. |
| 122 UseHistory use_history_; | 123 UseHistory use_history_; |
| 123 | 124 |
| 124 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketWin); | 125 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketWin); |
| 125 }; | 126 }; |
| 126 | 127 |
| 127 } // namespace net | 128 } // namespace net |
| 128 | 129 |
| 129 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_WIN_H_ | 130 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_WIN_H_ |
| OLD | NEW |