| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 // Socket implementation. | 92 // Socket implementation. |
| 93 int Read(IOBuffer* buf, | 93 int Read(IOBuffer* buf, |
| 94 int buf_len, | 94 int buf_len, |
| 95 const CompletionCallback& callback) override; | 95 const CompletionCallback& callback) override; |
| 96 int Write(IOBuffer* buf, | 96 int Write(IOBuffer* buf, |
| 97 int buf_len, | 97 int buf_len, |
| 98 const CompletionCallback& callback) override; | 98 const CompletionCallback& callback) override; |
| 99 int SetReceiveBufferSize(int32 size) override; | 99 int SetReceiveBufferSize(int32 size) override; |
| 100 int SetSendBufferSize(int32 size) override; | 100 int SetSendBufferSize(int32 size) override; |
| 101 | 101 |
| 102 protected: | |
| 103 // SSLClientSocket implementation. | |
| 104 scoped_refptr<X509Certificate> GetUnverifiedServerCertificateChain() | |
| 105 const override; | |
| 106 | |
| 107 private: | 102 private: |
| 108 class PeerCertificateChain; | 103 class PeerCertificateChain; |
| 109 class SSLContext; | 104 class SSLContext; |
| 110 friend class SSLClientSocket; | 105 friend class SSLClientSocket; |
| 111 friend class SSLContext; | 106 friend class SSLContext; |
| 112 | 107 |
| 113 int Init(); | 108 int Init(); |
| 114 void DoReadCallback(int result); | 109 void DoReadCallback(int result); |
| 115 void DoWriteCallback(int result); | 110 void DoWriteCallback(int result); |
| 116 | 111 |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 // pinning failure. It is a (somewhat) human-readable string. | 308 // pinning failure. It is a (somewhat) human-readable string. |
| 314 std::string pinning_failure_log_; | 309 std::string pinning_failure_log_; |
| 315 | 310 |
| 316 BoundNetLog net_log_; | 311 BoundNetLog net_log_; |
| 317 base::WeakPtrFactory<SSLClientSocketOpenSSL> weak_factory_; | 312 base::WeakPtrFactory<SSLClientSocketOpenSSL> weak_factory_; |
| 318 }; | 313 }; |
| 319 | 314 |
| 320 } // namespace net | 315 } // namespace net |
| 321 | 316 |
| 322 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ | 317 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ |
| OLD | NEW |