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 <stdint.h> | 10 #include <stdint.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 void ForceClientCertificateAndKeyForTest( |
| 105 scoped_refptr<X509Certificate> client_cert, |
| 106 scoped_ptr<SSLPrivateKey> client_private_key) override; |
| 107 |
102 private: | 108 private: |
103 class PeerCertificateChain; | 109 class PeerCertificateChain; |
104 class SSLContext; | 110 class SSLContext; |
105 friend class SSLClientSocket; | 111 friend class SSLClientSocket; |
106 friend class SSLContext; | 112 friend class SSLContext; |
107 | 113 |
108 int Init(); | 114 int Init(); |
109 void DoReadCallback(int result); | 115 void DoReadCallback(int result); |
110 void DoWriteCallback(int result); | 116 void DoWriteCallback(int result); |
111 | 117 |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 // pinning failure. It is a (somewhat) human-readable string. | 343 // pinning failure. It is a (somewhat) human-readable string. |
338 std::string pinning_failure_log_; | 344 std::string pinning_failure_log_; |
339 | 345 |
340 BoundNetLog net_log_; | 346 BoundNetLog net_log_; |
341 base::WeakPtrFactory<SSLClientSocketOpenSSL> weak_factory_; | 347 base::WeakPtrFactory<SSLClientSocketOpenSSL> weak_factory_; |
342 }; | 348 }; |
343 | 349 |
344 } // namespace net | 350 } // namespace net |
345 | 351 |
346 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ | 352 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ |
OLD | NEW |