OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_UNIX_DOMAIN_CLIENT_SOCKET_POSIX_H_ | 5 #ifndef NET_SOCKET_UNIX_DOMAIN_CLIENT_SOCKET_POSIX_H_ |
6 #define NET_SOCKET_UNIX_DOMAIN_CLIENT_SOCKET_POSIX_H_ | 6 #define NET_SOCKET_UNIX_DOMAIN_CLIENT_SOCKET_POSIX_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 int Connect(const CompletionCallback& callback) override; | 45 int Connect(const CompletionCallback& callback) override; |
46 void Disconnect() override; | 46 void Disconnect() override; |
47 bool IsConnected() const override; | 47 bool IsConnected() const override; |
48 bool IsConnectedAndIdle() const override; | 48 bool IsConnectedAndIdle() const override; |
49 int GetPeerAddress(IPEndPoint* address) const override; | 49 int GetPeerAddress(IPEndPoint* address) const override; |
50 int GetLocalAddress(IPEndPoint* address) const override; | 50 int GetLocalAddress(IPEndPoint* address) const override; |
51 const BoundNetLog& NetLog() const override; | 51 const BoundNetLog& NetLog() const override; |
52 void SetSubresourceSpeculation() override; | 52 void SetSubresourceSpeculation() override; |
53 void SetOmniboxSpeculation() override; | 53 void SetOmniboxSpeculation() override; |
54 bool WasEverUsed() const override; | 54 bool WasEverUsed() const override; |
55 bool UsingTCPFastOpen() const 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 void GetConnectionAttempts(ConnectionAttempts* out) const override; | 58 void GetConnectionAttempts(ConnectionAttempts* out) const override; |
60 void ClearConnectionAttempts() override {} | 59 void ClearConnectionAttempts() override {} |
61 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} | 60 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} |
62 int64_t GetTotalReceivedBytes() const override; | 61 int64_t GetTotalReceivedBytes() const override; |
63 | 62 |
64 // Socket implementation. | 63 // Socket implementation. |
65 int Read(IOBuffer* buf, | 64 int Read(IOBuffer* buf, |
(...skipping 17 matching lines...) Expand all Loading... |
83 // This net log is just to comply StreamSocket::NetLog(). It throws away | 82 // This net log is just to comply StreamSocket::NetLog(). It throws away |
84 // everything. | 83 // everything. |
85 BoundNetLog net_log_; | 84 BoundNetLog net_log_; |
86 | 85 |
87 DISALLOW_COPY_AND_ASSIGN(UnixDomainClientSocket); | 86 DISALLOW_COPY_AND_ASSIGN(UnixDomainClientSocket); |
88 }; | 87 }; |
89 | 88 |
90 } // namespace net | 89 } // namespace net |
91 | 90 |
92 #endif // NET_SOCKET_UNIX_DOMAIN_CLIENT_SOCKET_POSIX_H_ | 91 #endif // NET_SOCKET_UNIX_DOMAIN_CLIENT_SOCKET_POSIX_H_ |
OLD | NEW |