OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SSL_CLIENT_SOCKET_OPENSSL_H_ | 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ |
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ | 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 bool IsConnected() const override; | 78 bool IsConnected() const override; |
79 bool IsConnectedAndIdle() const override; | 79 bool IsConnectedAndIdle() const override; |
80 int GetPeerAddress(IPEndPoint* address) const override; | 80 int GetPeerAddress(IPEndPoint* address) const override; |
81 int GetLocalAddress(IPEndPoint* address) const override; | 81 int GetLocalAddress(IPEndPoint* address) const override; |
82 const BoundNetLog& NetLog() const override; | 82 const BoundNetLog& NetLog() const override; |
83 void SetSubresourceSpeculation() override; | 83 void SetSubresourceSpeculation() override; |
84 void SetOmniboxSpeculation() override; | 84 void SetOmniboxSpeculation() override; |
85 bool WasEverUsed() const override; | 85 bool WasEverUsed() const override; |
86 bool UsingTCPFastOpen() const override; | 86 bool UsingTCPFastOpen() const override; |
87 bool GetSSLInfo(SSLInfo* ssl_info) override; | 87 bool GetSSLInfo(SSLInfo* ssl_info) override; |
| 88 void GetConnectionAttempts(ConnectionAttempts* out) const override; |
| 89 void ClearConnectionAttempts() override {} |
| 90 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} |
88 | 91 |
89 // Socket implementation. | 92 // Socket implementation. |
90 int Read(IOBuffer* buf, | 93 int Read(IOBuffer* buf, |
91 int buf_len, | 94 int buf_len, |
92 const CompletionCallback& callback) override; | 95 const CompletionCallback& callback) override; |
93 int Write(IOBuffer* buf, | 96 int Write(IOBuffer* buf, |
94 int buf_len, | 97 int buf_len, |
95 const CompletionCallback& callback) override; | 98 const CompletionCallback& callback) override; |
96 int SetReceiveBufferSize(int32 size) override; | 99 int SetReceiveBufferSize(int32 size) override; |
97 int SetSendBufferSize(int32 size) override; | 100 int SetSendBufferSize(int32 size) override; |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 // pinning failure. It is a (somewhat) human-readable string. | 313 // pinning failure. It is a (somewhat) human-readable string. |
311 std::string pinning_failure_log_; | 314 std::string pinning_failure_log_; |
312 | 315 |
313 BoundNetLog net_log_; | 316 BoundNetLog net_log_; |
314 base::WeakPtrFactory<SSLClientSocketOpenSSL> weak_factory_; | 317 base::WeakPtrFactory<SSLClientSocketOpenSSL> weak_factory_; |
315 }; | 318 }; |
316 | 319 |
317 } // namespace net | 320 } // namespace net |
318 | 321 |
319 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ | 322 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ |
OLD | NEW |