| 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_NSS_H_ | 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ |
| 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ | 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ |
| 7 | 7 |
| 8 #include <certt.h> | 8 #include <certt.h> |
| 9 #include <keyt.h> | 9 #include <keyt.h> |
| 10 #include <nspr.h> | 10 #include <nspr.h> |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 // behaviour is desired, for performance or compatibility, the current task | 61 // behaviour is desired, for performance or compatibility, the current task |
| 62 // runner should be supplied instead. | 62 // runner should be supplied instead. |
| 63 SSLClientSocketNSS(base::SequencedTaskRunner* nss_task_runner, | 63 SSLClientSocketNSS(base::SequencedTaskRunner* nss_task_runner, |
| 64 scoped_ptr<ClientSocketHandle> transport_socket, | 64 scoped_ptr<ClientSocketHandle> transport_socket, |
| 65 const HostPortPair& host_and_port, | 65 const HostPortPair& host_and_port, |
| 66 const SSLConfig& ssl_config, | 66 const SSLConfig& ssl_config, |
| 67 const SSLClientSocketContext& context); | 67 const SSLClientSocketContext& context); |
| 68 ~SSLClientSocketNSS() override; | 68 ~SSLClientSocketNSS() override; |
| 69 | 69 |
| 70 // SSLClientSocket implementation. | 70 // SSLClientSocket implementation. |
| 71 std::string GetSessionCacheKey() const override; | |
| 72 bool InSessionCache() const override; | |
| 73 void SetHandshakeCompletionCallback(const base::Closure& callback) override; | |
| 74 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; | 71 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; |
| 75 NextProtoStatus GetNextProto(std::string* proto) override; | 72 NextProtoStatus GetNextProto(std::string* proto) override; |
| 76 | 73 |
| 77 // SSLSocket implementation. | 74 // SSLSocket implementation. |
| 78 int ExportKeyingMaterial(const base::StringPiece& label, | 75 int ExportKeyingMaterial(const base::StringPiece& label, |
| 79 bool has_context, | 76 bool has_context, |
| 80 const base::StringPiece& context, | 77 const base::StringPiece& context, |
| 81 unsigned char* out, | 78 unsigned char* out, |
| 82 unsigned int outlen) override; | 79 unsigned int outlen) override; |
| 83 int GetTLSUniqueChannelBinding(std::string* out) override; | 80 int GetTLSUniqueChannelBinding(std::string* out) override; |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 // Added the following code Debugging in release mode. | 209 // Added the following code Debugging in release mode. |
| 213 mutable base::Lock lock_; | 210 mutable base::Lock lock_; |
| 214 // This is mutable so that CalledOnValidThread can set it. | 211 // This is mutable so that CalledOnValidThread can set it. |
| 215 // It's guarded by |lock_|. | 212 // It's guarded by |lock_|. |
| 216 mutable base::PlatformThreadId valid_thread_id_; | 213 mutable base::PlatformThreadId valid_thread_id_; |
| 217 }; | 214 }; |
| 218 | 215 |
| 219 } // namespace net | 216 } // namespace net |
| 220 | 217 |
| 221 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ | 218 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ |
| OLD | NEW |