| 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_H_ | 5 #ifndef NET_SOCKET_TCP_CLIENT_SOCKET_H_ |
| 6 #define NET_SOCKET_TCP_CLIENT_SOCKET_H_ | 6 #define NET_SOCKET_TCP_CLIENT_SOCKET_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 virtual void Disconnect() OVERRIDE; | 42 virtual void Disconnect() OVERRIDE; |
| 43 virtual bool IsConnected() const OVERRIDE; | 43 virtual bool IsConnected() const OVERRIDE; |
| 44 virtual bool IsConnectedAndIdle() const OVERRIDE; | 44 virtual bool IsConnectedAndIdle() const OVERRIDE; |
| 45 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; | 45 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; |
| 46 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; | 46 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; |
| 47 virtual const BoundNetLog& NetLog() const OVERRIDE; | 47 virtual const BoundNetLog& NetLog() const OVERRIDE; |
| 48 virtual void SetSubresourceSpeculation() OVERRIDE; | 48 virtual void SetSubresourceSpeculation() OVERRIDE; |
| 49 virtual void SetOmniboxSpeculation() OVERRIDE; | 49 virtual void SetOmniboxSpeculation() OVERRIDE; |
| 50 virtual bool WasEverUsed() const OVERRIDE; | 50 virtual bool WasEverUsed() const OVERRIDE; |
| 51 virtual bool UsingTCPFastOpen() const OVERRIDE; | 51 virtual bool UsingTCPFastOpen() const OVERRIDE; |
| 52 virtual void EnableTCPFastOpen() OVERRIDE; |
| 52 virtual bool WasNpnNegotiated() const OVERRIDE; | 53 virtual bool WasNpnNegotiated() const OVERRIDE; |
| 53 virtual NextProto GetNegotiatedProtocol() const OVERRIDE; | 54 virtual NextProto GetNegotiatedProtocol() const OVERRIDE; |
| 54 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; | 55 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; |
| 55 | 56 |
| 56 // Socket implementation. | 57 // Socket implementation. |
| 57 // Multiple outstanding requests are not supported. | 58 // Multiple outstanding requests are not supported. |
| 58 // Full duplex mode (reading and writing at the same time) is supported. | 59 // Full duplex mode (reading and writing at the same time) is supported. |
| 59 virtual int Read(IOBuffer* buf, int buf_len, | 60 virtual int Read(IOBuffer* buf, int buf_len, |
| 60 const CompletionCallback& callback) OVERRIDE; | 61 const CompletionCallback& callback) OVERRIDE; |
| 61 virtual int Write(IOBuffer* buf, int buf_len, | 62 virtual int Write(IOBuffer* buf, int buf_len, |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 // Record of connectivity and transmissions, for use in speculative connection | 113 // Record of connectivity and transmissions, for use in speculative connection |
| 113 // histograms. | 114 // histograms. |
| 114 UseHistory use_history_; | 115 UseHistory use_history_; |
| 115 | 116 |
| 116 DISALLOW_COPY_AND_ASSIGN(TCPClientSocket); | 117 DISALLOW_COPY_AND_ASSIGN(TCPClientSocket); |
| 117 }; | 118 }; |
| 118 | 119 |
| 119 } // namespace net | 120 } // namespace net |
| 120 | 121 |
| 121 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_H_ | 122 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_H_ |
| OLD | NEW |