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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 int Connect(const CompletionCallback& callback) override; | 44 int Connect(const CompletionCallback& callback) override; |
45 void Disconnect() override; | 45 void Disconnect() override; |
46 bool IsConnected() const override; | 46 bool IsConnected() const override; |
47 bool IsConnectedAndIdle() const override; | 47 bool IsConnectedAndIdle() const override; |
48 int GetPeerAddress(IPEndPoint* address) const override; | 48 int GetPeerAddress(IPEndPoint* address) const override; |
49 int GetLocalAddress(IPEndPoint* address) const override; | 49 int GetLocalAddress(IPEndPoint* address) const override; |
50 const BoundNetLog& NetLog() const override; | 50 const BoundNetLog& NetLog() const override; |
51 void SetSubresourceSpeculation() override; | 51 void SetSubresourceSpeculation() override; |
52 void SetOmniboxSpeculation() override; | 52 void SetOmniboxSpeculation() override; |
53 bool WasEverUsed() const override; | 53 bool WasEverUsed() const override; |
54 bool UsingTCPFastOpen() const override; | |
55 void EnableTCPFastOpenIfSupported() override; | 54 void EnableTCPFastOpenIfSupported() override; |
56 bool WasNpnNegotiated() const override; | 55 bool WasNpnNegotiated() const override; |
57 NextProto GetNegotiatedProtocol() const override; | 56 NextProto GetNegotiatedProtocol() const override; |
58 bool GetSSLInfo(SSLInfo* ssl_info) override; | 57 bool GetSSLInfo(SSLInfo* ssl_info) override; |
59 | 58 |
60 // Socket implementation. | 59 // Socket implementation. |
61 // Multiple outstanding requests are not supported. | 60 // Multiple outstanding requests are not supported. |
62 // Full duplex mode (reading and writing at the same time) is supported. | 61 // Full duplex mode (reading and writing at the same time) is supported. |
63 int Read(IOBuffer* buf, | 62 int Read(IOBuffer* buf, |
64 int buf_len, | 63 int buf_len, |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 134 |
136 // Total number of bytes received by the socket. | 135 // Total number of bytes received by the socket. |
137 int64_t total_received_bytes_; | 136 int64_t total_received_bytes_; |
138 | 137 |
139 DISALLOW_COPY_AND_ASSIGN(TCPClientSocket); | 138 DISALLOW_COPY_AND_ASSIGN(TCPClientSocket); |
140 }; | 139 }; |
141 | 140 |
142 } // namespace net | 141 } // namespace net |
143 | 142 |
144 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_H_ | 143 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_H_ |
OLD | NEW |