Chromium Code Reviews| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 73 virtual NextProtoStatus GetNextProto(std::string* proto, | 73 virtual NextProtoStatus GetNextProto(std::string* proto, |
| 74 std::string* server_protos) OVERRIDE; | 74 std::string* server_protos) OVERRIDE; |
| 75 | 75 |
| 76 // SSLSocket implementation. | 76 // SSLSocket implementation. |
| 77 virtual int ExportKeyingMaterial(const base::StringPiece& label, | 77 virtual int ExportKeyingMaterial(const base::StringPiece& label, |
| 78 bool has_context, | 78 bool has_context, |
| 79 const base::StringPiece& context, | 79 const base::StringPiece& context, |
| 80 unsigned char* out, | 80 unsigned char* out, |
| 81 unsigned int outlen) OVERRIDE; | 81 unsigned int outlen) OVERRIDE; |
| 82 virtual int GetTLSUniqueChannelBinding(std::string* out) OVERRIDE; | 82 virtual int GetTLSUniqueChannelBinding(std::string* out) OVERRIDE; |
| 83 // For unit testing only. | |
| 84 virtual const scoped_refptr<X509Certificate> GetUnverifiedServerCertificate() | |
|
wtc
2014/03/10 21:45:34
1. This method is listed under the "SSLSocket impl
Ryan Sleevi
2014/03/11 00:15:15
did you mean for this to be "const scoped_refptr<X
haavardm
2014/03/11 18:43:21
No need for scoped pointer here at all, so I'll us
haavardm
2014/03/11 18:43:21
Done.
| |
| 85 const OVERRIDE; | |
| 83 | 86 |
| 84 // StreamSocket implementation. | 87 // StreamSocket implementation. |
| 85 virtual int Connect(const CompletionCallback& callback) OVERRIDE; | 88 virtual int Connect(const CompletionCallback& callback) OVERRIDE; |
| 86 virtual void Disconnect() OVERRIDE; | 89 virtual void Disconnect() OVERRIDE; |
| 87 virtual bool IsConnected() const OVERRIDE; | 90 virtual bool IsConnected() const OVERRIDE; |
| 88 virtual bool IsConnectedAndIdle() const OVERRIDE; | 91 virtual bool IsConnectedAndIdle() const OVERRIDE; |
| 89 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; | 92 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; |
| 90 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; | 93 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; |
| 91 virtual const BoundNetLog& NetLog() const OVERRIDE; | 94 virtual const BoundNetLog& NetLog() const OVERRIDE; |
| 92 virtual void SetSubresourceSpeculation() OVERRIDE; | 95 virtual void SetSubresourceSpeculation() OVERRIDE; |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 201 // Added the following code Debugging in release mode. | 204 // Added the following code Debugging in release mode. |
| 202 mutable base::Lock lock_; | 205 mutable base::Lock lock_; |
| 203 // This is mutable so that CalledOnValidThread can set it. | 206 // This is mutable so that CalledOnValidThread can set it. |
| 204 // It's guarded by |lock_|. | 207 // It's guarded by |lock_|. |
| 205 mutable base::PlatformThreadId valid_thread_id_; | 208 mutable base::PlatformThreadId valid_thread_id_; |
| 206 }; | 209 }; |
| 207 | 210 |
| 208 } // namespace net | 211 } // namespace net |
| 209 | 212 |
| 210 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ | 213 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ |
| OLD | NEW |