| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 | 95 |
| 96 // Socket implementation. | 96 // Socket implementation. |
| 97 int Read(IOBuffer* buf, | 97 int Read(IOBuffer* buf, |
| 98 int buf_len, | 98 int buf_len, |
| 99 const CompletionCallback& callback) override; | 99 const CompletionCallback& callback) override; |
| 100 int Write(IOBuffer* buf, | 100 int Write(IOBuffer* buf, |
| 101 int buf_len, | 101 int buf_len, |
| 102 const CompletionCallback& callback) override; | 102 const CompletionCallback& callback) override; |
| 103 int SetReceiveBufferSize(int32 size) override; | 103 int SetReceiveBufferSize(int32 size) override; |
| 104 int SetSendBufferSize(int32 size) override; | 104 int SetSendBufferSize(int32 size) override; |
| 105 |
| 106 // SSLClientSocket implementation. |
| 105 ChannelIDService* GetChannelIDService() const override; | 107 ChannelIDService* GetChannelIDService() const override; |
| 108 SSLFailureState GetSSLFailureState() const override; |
| 106 | 109 |
| 107 protected: | 110 protected: |
| 108 // SSLClientSocket implementation. | 111 // SSLClientSocket implementation. |
| 109 scoped_refptr<X509Certificate> GetUnverifiedServerCertificateChain() | 112 scoped_refptr<X509Certificate> GetUnverifiedServerCertificateChain() |
| 110 const override; | 113 const override; |
| 111 | 114 |
| 112 private: | 115 private: |
| 113 // Helper class to handle marshalling any NSS interaction to and from the | 116 // Helper class to handle marshalling any NSS interaction to and from the |
| 114 // NSS and network task runners. Not every call needs to happen on the Core | 117 // NSS and network task runners. Not every call needs to happen on the Core |
| 115 class Core; | 118 class Core; |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 // Added the following code Debugging in release mode. | 212 // Added the following code Debugging in release mode. |
| 210 mutable base::Lock lock_; | 213 mutable base::Lock lock_; |
| 211 // This is mutable so that CalledOnValidThread can set it. | 214 // This is mutable so that CalledOnValidThread can set it. |
| 212 // It's guarded by |lock_|. | 215 // It's guarded by |lock_|. |
| 213 mutable base::PlatformThreadId valid_thread_id_; | 216 mutable base::PlatformThreadId valid_thread_id_; |
| 214 }; | 217 }; |
| 215 | 218 |
| 216 } // namespace net | 219 } // namespace net |
| 217 | 220 |
| 218 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ | 221 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ |
| OLD | NEW |