| 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_OPENSSL_H_ | 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ |
| 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ | 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 bool transport_send_busy_; | 176 bool transport_send_busy_; |
| 177 bool transport_recv_busy_; | 177 bool transport_recv_busy_; |
| 178 | 178 |
| 179 scoped_refptr<DrainableIOBuffer> send_buffer_; | 179 scoped_refptr<DrainableIOBuffer> send_buffer_; |
| 180 scoped_refptr<IOBuffer> recv_buffer_; | 180 scoped_refptr<IOBuffer> recv_buffer_; |
| 181 | 181 |
| 182 CompletionCallback user_connect_callback_; | 182 CompletionCallback user_connect_callback_; |
| 183 CompletionCallback user_read_callback_; | 183 CompletionCallback user_read_callback_; |
| 184 CompletionCallback user_write_callback_; | 184 CompletionCallback user_write_callback_; |
| 185 | 185 |
| 186 base::WeakPtrFactory<SSLClientSocketOpenSSL> weak_factory_; | |
| 187 | |
| 188 // Used by Read function. | 186 // Used by Read function. |
| 189 scoped_refptr<IOBuffer> user_read_buf_; | 187 scoped_refptr<IOBuffer> user_read_buf_; |
| 190 int user_read_buf_len_; | 188 int user_read_buf_len_; |
| 191 | 189 |
| 192 // Used by Write function. | 190 // Used by Write function. |
| 193 scoped_refptr<IOBuffer> user_write_buf_; | 191 scoped_refptr<IOBuffer> user_write_buf_; |
| 194 int user_write_buf_len_; | 192 int user_write_buf_len_; |
| 195 | 193 |
| 196 // Used by DoPayloadRead() when attempting to fill the caller's buffer with | 194 // Used by DoPayloadRead() when attempting to fill the caller's buffer with |
| 197 // as much data as possible without blocking. | 195 // as much data as possible without blocking. |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 ChannelIDService::RequestHandle channel_id_request_handle_; | 280 ChannelIDService::RequestHandle channel_id_request_handle_; |
| 283 | 281 |
| 284 TransportSecurityState* transport_security_state_; | 282 TransportSecurityState* transport_security_state_; |
| 285 | 283 |
| 286 // pinning_failure_log contains a message produced by | 284 // pinning_failure_log contains a message produced by |
| 287 // TransportSecurityState::CheckPublicKeyPins in the event of a | 285 // TransportSecurityState::CheckPublicKeyPins in the event of a |
| 288 // pinning failure. It is a (somewhat) human-readable string. | 286 // pinning failure. It is a (somewhat) human-readable string. |
| 289 std::string pinning_failure_log_; | 287 std::string pinning_failure_log_; |
| 290 | 288 |
| 291 BoundNetLog net_log_; | 289 BoundNetLog net_log_; |
| 290 base::WeakPtrFactory<SSLClientSocketOpenSSL> weak_factory_; |
| 292 }; | 291 }; |
| 293 | 292 |
| 294 } // namespace net | 293 } // namespace net |
| 295 | 294 |
| 296 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ | 295 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ |
| OLD | NEW |