| 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_IMPL_H_ | 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_IMPL_H_ |
| 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_IMPL_H_ | 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_IMPL_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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 unsigned char* out, | 85 unsigned char* out, |
| 86 unsigned int outlen) override; | 86 unsigned int outlen) override; |
| 87 | 87 |
| 88 // StreamSocket implementation. | 88 // StreamSocket implementation. |
| 89 int Connect(const CompletionCallback& callback) override; | 89 int Connect(const CompletionCallback& callback) override; |
| 90 void Disconnect() override; | 90 void Disconnect() override; |
| 91 bool IsConnected() const override; | 91 bool IsConnected() const override; |
| 92 bool IsConnectedAndIdle() const override; | 92 bool IsConnectedAndIdle() const override; |
| 93 int GetPeerAddress(IPEndPoint* address) const override; | 93 int GetPeerAddress(IPEndPoint* address) const override; |
| 94 int GetLocalAddress(IPEndPoint* address) const override; | 94 int GetLocalAddress(IPEndPoint* address) const override; |
| 95 const BoundNetLog& NetLog() const override; | 95 const NetLogWithSource& NetLog() const override; |
| 96 void SetSubresourceSpeculation() override; | 96 void SetSubresourceSpeculation() override; |
| 97 void SetOmniboxSpeculation() override; | 97 void SetOmniboxSpeculation() override; |
| 98 bool WasEverUsed() const override; | 98 bool WasEverUsed() const override; |
| 99 bool WasNpnNegotiated() const override; | 99 bool WasNpnNegotiated() const override; |
| 100 NextProto GetNegotiatedProtocol() const override; | 100 NextProto GetNegotiatedProtocol() const override; |
| 101 bool GetSSLInfo(SSLInfo* ssl_info) override; | 101 bool GetSSLInfo(SSLInfo* ssl_info) override; |
| 102 void GetConnectionAttempts(ConnectionAttempts* out) const override; | 102 void GetConnectionAttempts(ConnectionAttempts* out) const override; |
| 103 void ClearConnectionAttempts() override {} | 103 void ClearConnectionAttempts() override {} |
| 104 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} | 104 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} |
| 105 int64_t GetTotalReceivedBytes() const override; | 105 int64_t GetTotalReceivedBytes() const override; |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 CTPolicyEnforcer* const policy_enforcer_; | 368 CTPolicyEnforcer* const policy_enforcer_; |
| 369 | 369 |
| 370 // pinning_failure_log contains a message produced by | 370 // pinning_failure_log contains a message produced by |
| 371 // TransportSecurityState::CheckPublicKeyPins in the event of a | 371 // TransportSecurityState::CheckPublicKeyPins in the event of a |
| 372 // pinning failure. It is a (somewhat) human-readable string. | 372 // pinning failure. It is a (somewhat) human-readable string. |
| 373 std::string pinning_failure_log_; | 373 std::string pinning_failure_log_; |
| 374 | 374 |
| 375 // True if PKP is bypassed due to a local trust anchor. | 375 // True if PKP is bypassed due to a local trust anchor. |
| 376 bool pkp_bypassed_; | 376 bool pkp_bypassed_; |
| 377 | 377 |
| 378 BoundNetLog net_log_; | 378 NetLogWithSource net_log_; |
| 379 base::WeakPtrFactory<SSLClientSocketImpl> weak_factory_; | 379 base::WeakPtrFactory<SSLClientSocketImpl> weak_factory_; |
| 380 }; | 380 }; |
| 381 | 381 |
| 382 } // namespace net | 382 } // namespace net |
| 383 | 383 |
| 384 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_IMPL_H_ | 384 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_IMPL_H_ |
| OLD | NEW |