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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} | 87 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} |
88 int64_t GetTotalReceivedBytes() const override; | 88 int64_t GetTotalReceivedBytes() const override; |
89 | 89 |
90 // Socket implementation. | 90 // Socket implementation. |
91 int Read(IOBuffer* buf, | 91 int Read(IOBuffer* buf, |
92 int buf_len, | 92 int buf_len, |
93 const CompletionCallback& callback) override; | 93 const CompletionCallback& callback) override; |
94 int Write(IOBuffer* buf, | 94 int Write(IOBuffer* buf, |
95 int buf_len, | 95 int buf_len, |
96 const CompletionCallback& callback) override; | 96 const CompletionCallback& callback) override; |
97 int SetReceiveBufferSize(int32 size) override; | 97 int SetReceiveBufferSize(int32_t size) override; |
98 int SetSendBufferSize(int32 size) override; | 98 int SetSendBufferSize(int32_t size) override; |
99 | 99 |
100 // SSLClientSocket implementation. | 100 // SSLClientSocket implementation. |
101 ChannelIDService* GetChannelIDService() const override; | 101 ChannelIDService* GetChannelIDService() const override; |
102 SSLFailureState GetSSLFailureState() const override; | 102 SSLFailureState GetSSLFailureState() const override; |
103 | 103 |
104 private: | 104 private: |
105 // Helper class to handle marshalling any NSS interaction to and from the | 105 // Helper class to handle marshalling any NSS interaction to and from the |
106 // NSS and network task runners. Not every call needs to happen on the Core | 106 // NSS and network task runners. Not every call needs to happen on the Core |
107 class Core; | 107 class Core; |
108 | 108 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 // Added the following code Debugging in release mode. | 208 // Added the following code Debugging in release mode. |
209 mutable base::Lock lock_; | 209 mutable base::Lock lock_; |
210 // This is mutable so that CalledOnValidThread can set it. | 210 // This is mutable so that CalledOnValidThread can set it. |
211 // It's guarded by |lock_|. | 211 // It's guarded by |lock_|. |
212 mutable base::PlatformThreadId valid_thread_id_; | 212 mutable base::PlatformThreadId valid_thread_id_; |
213 }; | 213 }; |
214 | 214 |
215 } // namespace net | 215 } // namespace net |
216 | 216 |
217 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ | 217 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ |
OLD | NEW |