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

Side by Side Diff: net/spdy/spdy_proxy_client_socket.h

Issue 8771012: Fix crash bug in SpdyProxyClientSocket.GetPeerAddress where (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Really final, I hope2 Created 9 years 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
« no previous file with comments | « no previous file | net/spdy/spdy_proxy_client_socket.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ 5 #ifndef NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_
6 #define NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ 6 #define NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <list> 10 #include <list>
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 std::list<scoped_refptr<DrainableIOBuffer> > read_buffer_; 147 std::list<scoped_refptr<DrainableIOBuffer> > read_buffer_;
148 148
149 // User provided buffer for the Read() response. 149 // User provided buffer for the Read() response.
150 scoped_refptr<DrainableIOBuffer> user_buffer_; 150 scoped_refptr<DrainableIOBuffer> user_buffer_;
151 151
152 // User specified number of bytes to be written. 152 // User specified number of bytes to be written.
153 int write_buffer_len_; 153 int write_buffer_len_;
154 // Number of bytes written which have not been confirmed 154 // Number of bytes written which have not been confirmed
155 int write_bytes_outstanding_; 155 int write_bytes_outstanding_;
156 156
157 // True if read has ever returned zero for eof.
158 bool eof_has_been_read_;
159 // True if the transport socket has ever sent data. 157 // True if the transport socket has ever sent data.
160 bool was_ever_used_; 158 bool was_ever_used_;
161 159
162 scoped_ptr<SpdyHttpStream> response_stream_; 160 scoped_ptr<SpdyHttpStream> response_stream_;
163 161
164 base::WeakPtrFactory<SpdyProxyClientSocket> weak_factory_; 162 base::WeakPtrFactory<SpdyProxyClientSocket> weak_factory_;
165 163
166 const BoundNetLog net_log_; 164 const BoundNetLog net_log_;
167 165
168 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); 166 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket);
169 }; 167 };
170 168
171 } // namespace net 169 } // namespace net
172 170
173 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ 171 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_
OLDNEW
« no previous file with comments | « no previous file | net/spdy/spdy_proxy_client_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698