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 <memory> | 10 #include <memory> |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 // Binds the socket to a local IP address and port. | 45 // Binds the socket to a local IP address and port. |
46 int Bind(const IPEndPoint& address); | 46 int Bind(const IPEndPoint& address); |
47 | 47 |
48 // StreamSocket implementation. | 48 // StreamSocket implementation. |
49 int Connect(const CompletionCallback& callback) override; | 49 int Connect(const CompletionCallback& callback) override; |
50 void Disconnect() override; | 50 void Disconnect() override; |
51 bool IsConnected() const override; | 51 bool IsConnected() const override; |
52 bool IsConnectedAndIdle() const override; | 52 bool IsConnectedAndIdle() const override; |
53 int GetPeerAddress(IPEndPoint* address) const override; | 53 int GetPeerAddress(IPEndPoint* address) const override; |
54 int GetLocalAddress(IPEndPoint* address) const override; | 54 int GetLocalAddress(IPEndPoint* address) const override; |
55 const BoundNetLog& NetLog() const override; | 55 const NetLogWithSource& NetLog() const override; |
56 void SetSubresourceSpeculation() override; | 56 void SetSubresourceSpeculation() override; |
57 void SetOmniboxSpeculation() override; | 57 void SetOmniboxSpeculation() override; |
58 bool WasEverUsed() const override; | 58 bool WasEverUsed() const override; |
59 void EnableTCPFastOpenIfSupported() override; | 59 void EnableTCPFastOpenIfSupported() override; |
60 bool WasNpnNegotiated() const override; | 60 bool WasNpnNegotiated() const override; |
61 NextProto GetNegotiatedProtocol() const override; | 61 NextProto GetNegotiatedProtocol() const override; |
62 bool GetSSLInfo(SSLInfo* ssl_info) override; | 62 bool GetSSLInfo(SSLInfo* ssl_info) override; |
63 | 63 |
64 // Socket implementation. | 64 // Socket implementation. |
65 // Multiple outstanding requests are not supported. | 65 // Multiple outstanding requests are not supported. |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 | 146 |
147 // Total number of bytes received by the socket. | 147 // Total number of bytes received by the socket. |
148 int64_t total_received_bytes_; | 148 int64_t total_received_bytes_; |
149 | 149 |
150 DISALLOW_COPY_AND_ASSIGN(TCPClientSocket); | 150 DISALLOW_COPY_AND_ASSIGN(TCPClientSocket); |
151 }; | 151 }; |
152 | 152 |
153 } // namespace net | 153 } // namespace net |
154 | 154 |
155 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_H_ | 155 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_H_ |
OLD | NEW |