| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 // SSLClientSocket implementation. | 60 // SSLClientSocket implementation. |
| 61 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; | 61 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; |
| 62 NextProtoStatus GetNextProto(std::string* proto) const override; | 62 NextProtoStatus GetNextProto(std::string* proto) const override; |
| 63 | 63 |
| 64 // SSLSocket implementation. | 64 // SSLSocket implementation. |
| 65 int ExportKeyingMaterial(const base::StringPiece& label, | 65 int ExportKeyingMaterial(const base::StringPiece& label, |
| 66 bool has_context, | 66 bool has_context, |
| 67 const base::StringPiece& context, | 67 const base::StringPiece& context, |
| 68 unsigned char* out, | 68 unsigned char* out, |
| 69 unsigned int outlen) override; | 69 unsigned int outlen) override; |
| 70 int GetTLSUniqueChannelBinding(std::string* out) override; | |
| 71 | 70 |
| 72 // StreamSocket implementation. | 71 // StreamSocket implementation. |
| 73 int Connect(const CompletionCallback& callback) override; | 72 int Connect(const CompletionCallback& callback) override; |
| 74 void Disconnect() override; | 73 void Disconnect() override; |
| 75 bool IsConnected() const override; | 74 bool IsConnected() const override; |
| 76 bool IsConnectedAndIdle() const override; | 75 bool IsConnectedAndIdle() const override; |
| 77 int GetPeerAddress(IPEndPoint* address) const override; | 76 int GetPeerAddress(IPEndPoint* address) const override; |
| 78 int GetLocalAddress(IPEndPoint* address) const override; | 77 int GetLocalAddress(IPEndPoint* address) const override; |
| 79 const BoundNetLog& NetLog() const override; | 78 const BoundNetLog& NetLog() const override; |
| 80 void SetSubresourceSpeculation() override; | 79 void SetSubresourceSpeculation() override; |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 // Added the following code Debugging in release mode. | 210 // Added the following code Debugging in release mode. |
| 212 mutable base::Lock lock_; | 211 mutable base::Lock lock_; |
| 213 // This is mutable so that CalledOnValidThread can set it. | 212 // This is mutable so that CalledOnValidThread can set it. |
| 214 // It's guarded by |lock_|. | 213 // It's guarded by |lock_|. |
| 215 mutable base::PlatformThreadId valid_thread_id_; | 214 mutable base::PlatformThreadId valid_thread_id_; |
| 216 }; | 215 }; |
| 217 | 216 |
| 218 } // namespace net | 217 } // namespace net |
| 219 | 218 |
| 220 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ | 219 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ |
| OLD | NEW |