| 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 <openssl/base.h> | 8 #include <openssl/base.h> |
| 9 #include <openssl/ssl.h> | 9 #include <openssl/ssl.h> |
| 10 #include <stddef.h> | 10 #include <stddef.h> |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 int Connect(const CompletionCallback& callback) override; | 92 int Connect(const CompletionCallback& callback) override; |
| 93 void Disconnect() override; | 93 void Disconnect() override; |
| 94 bool IsConnected() const override; | 94 bool IsConnected() const override; |
| 95 bool IsConnectedAndIdle() const override; | 95 bool IsConnectedAndIdle() const override; |
| 96 int GetPeerAddress(IPEndPoint* address) const override; | 96 int GetPeerAddress(IPEndPoint* address) const override; |
| 97 int GetLocalAddress(IPEndPoint* address) const override; | 97 int GetLocalAddress(IPEndPoint* address) const override; |
| 98 const BoundNetLog& NetLog() const override; | 98 const BoundNetLog& NetLog() const override; |
| 99 void SetSubresourceSpeculation() override; | 99 void SetSubresourceSpeculation() override; |
| 100 void SetOmniboxSpeculation() override; | 100 void SetOmniboxSpeculation() override; |
| 101 bool WasEverUsed() const override; | 101 bool WasEverUsed() const override; |
| 102 bool UsingTCPFastOpen() const override; | |
| 103 bool GetSSLInfo(SSLInfo* ssl_info) override; | 102 bool GetSSLInfo(SSLInfo* ssl_info) override; |
| 104 void GetConnectionAttempts(ConnectionAttempts* out) const override; | 103 void GetConnectionAttempts(ConnectionAttempts* out) const override; |
| 105 void ClearConnectionAttempts() override {} | 104 void ClearConnectionAttempts() override {} |
| 106 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} | 105 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} |
| 107 int64_t GetTotalReceivedBytes() const override; | 106 int64_t GetTotalReceivedBytes() const override; |
| 108 | 107 |
| 109 // Socket implementation. | 108 // Socket implementation. |
| 110 int Read(IOBuffer* buf, | 109 int Read(IOBuffer* buf, |
| 111 int buf_len, | 110 int buf_len, |
| 112 const CompletionCallback& callback) override; | 111 const CompletionCallback& callback) override; |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 // pinning failure. It is a (somewhat) human-readable string. | 363 // pinning failure. It is a (somewhat) human-readable string. |
| 365 std::string pinning_failure_log_; | 364 std::string pinning_failure_log_; |
| 366 | 365 |
| 367 BoundNetLog net_log_; | 366 BoundNetLog net_log_; |
| 368 base::WeakPtrFactory<SSLClientSocketOpenSSL> weak_factory_; | 367 base::WeakPtrFactory<SSLClientSocketOpenSSL> weak_factory_; |
| 369 }; | 368 }; |
| 370 | 369 |
| 371 } // namespace net | 370 } // namespace net |
| 372 | 371 |
| 373 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ | 372 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ |
| OLD | NEW |