OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <certt.h> | 9 #include <certt.h> |
10 #include <keyt.h> | 10 #include <keyt.h> |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 bool transport_send_busy_; | 210 bool transport_send_busy_; |
211 bool transport_recv_busy_; | 211 bool transport_recv_busy_; |
212 // corked_ is true if we are currently suspending writes to the network. This | 212 // corked_ is true if we are currently suspending writes to the network. This |
213 // is named after the similar kernel flag, TCP_CORK. | 213 // is named after the similar kernel flag, TCP_CORK. |
214 bool corked_; | 214 bool corked_; |
215 // uncork_timer_ is used to limit the amount of time that we'll delay the | 215 // uncork_timer_ is used to limit the amount of time that we'll delay the |
216 // Finished message while waiting for a Write. | 216 // Finished message while waiting for a Write. |
217 base::OneShotTimer<SSLClientSocketNSS> uncork_timer_; | 217 base::OneShotTimer<SSLClientSocketNSS> uncork_timer_; |
218 scoped_refptr<IOBuffer> recv_buffer_; | 218 scoped_refptr<IOBuffer> recv_buffer_; |
219 | 219 |
220 OldCompletionCallbackImpl<SSLClientSocketNSS> handshake_io_callback_; | 220 CompletionCallback handshake_io_callback_; |
221 scoped_ptr<ClientSocketHandle> transport_; | 221 scoped_ptr<ClientSocketHandle> transport_; |
222 HostPortPair host_and_port_; | 222 HostPortPair host_and_port_; |
223 SSLConfig ssl_config_; | 223 SSLConfig ssl_config_; |
224 | 224 |
225 OldCompletionCallback* user_connect_callback_; | 225 OldCompletionCallback* user_connect_callback_; |
226 OldCompletionCallback* user_read_callback_; | 226 OldCompletionCallback* user_read_callback_; |
227 OldCompletionCallback* user_write_callback_; | 227 OldCompletionCallback* user_write_callback_; |
228 | 228 |
229 // Used by Read function. | 229 // Used by Read function. |
230 scoped_refptr<IOBuffer> user_read_buf_; | 230 scoped_refptr<IOBuffer> user_read_buf_; |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 // Added the following code Debugging in release mode. | 306 // Added the following code Debugging in release mode. |
307 mutable base::Lock lock_; | 307 mutable base::Lock lock_; |
308 // This is mutable so that CalledOnValidThread can set it. | 308 // This is mutable so that CalledOnValidThread can set it. |
309 // It's guarded by |lock_|. | 309 // It's guarded by |lock_|. |
310 mutable base::PlatformThreadId valid_thread_id_; | 310 mutable base::PlatformThreadId valid_thread_id_; |
311 }; | 311 }; |
312 | 312 |
313 } // namespace net | 313 } // namespace net |
314 | 314 |
315 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ | 315 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ |
OLD | NEW |