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