Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(688)

Side by Side Diff: net/socket/ssl_client_socket_openssl.h

Issue 10382186: Prevent the infinite loop inside SSLClientSocketNSS::OnSendComplete. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Add SSLClientSocketOpenSSL fix Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 int BufferSend(); 116 int BufferSend();
117 int BufferRecv(); 117 int BufferRecv();
118 void BufferSendComplete(int result); 118 void BufferSendComplete(int result);
119 void BufferRecvComplete(int result); 119 void BufferRecvComplete(int result);
120 void TransportWriteComplete(int result); 120 void TransportWriteComplete(int result);
121 void TransportReadComplete(int result); 121 void TransportReadComplete(int result);
122 122
123 bool transport_send_busy_; 123 bool transport_send_busy_;
124 scoped_refptr<DrainableIOBuffer> send_buffer_; 124 scoped_refptr<DrainableIOBuffer> send_buffer_;
125 bool transport_recv_busy_; 125 bool transport_recv_busy_;
126 bool transport_eof_;
126 scoped_refptr<IOBuffer> recv_buffer_; 127 scoped_refptr<IOBuffer> recv_buffer_;
127 128
128 CompletionCallback user_connect_callback_; 129 CompletionCallback user_connect_callback_;
129 CompletionCallback user_read_callback_; 130 CompletionCallback user_read_callback_;
130 CompletionCallback user_write_callback_; 131 CompletionCallback user_write_callback_;
131 132
132 // Used by Read function. 133 // Used by Read function.
133 scoped_refptr<IOBuffer> user_read_buf_; 134 scoped_refptr<IOBuffer> user_read_buf_;
134 int user_read_buf_len_; 135 int user_read_buf_len_;
135 136
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 State next_handshake_state_; 175 State next_handshake_state_;
175 NextProtoStatus npn_status_; 176 NextProtoStatus npn_status_;
176 std::string npn_proto_; 177 std::string npn_proto_;
177 std::string server_protos_; 178 std::string server_protos_;
178 BoundNetLog net_log_; 179 BoundNetLog net_log_;
179 }; 180 };
180 181
181 } // namespace net 182 } // namespace net
182 183
183 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ 184 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698