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

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: '' 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
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>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "net/base/address_list.h"
16 #include "net/base/ip_endpoint.h"
wtc 2011/12/01 22:22:15 Nit: list ip_endpoint.h after host_port_pair.h.
Ryan Hamilton 2011/12/02 22:24:13 Done. (But then we decided to do a different impl
15 #include "net/base/completion_callback.h" 17 #include "net/base/completion_callback.h"
16 #include "net/base/host_port_pair.h" 18 #include "net/base/host_port_pair.h"
17 #include "net/base/net_log.h" 19 #include "net/base/net_log.h"
18 #include "net/http/http_auth_controller.h" 20 #include "net/http/http_auth_controller.h"
19 #include "net/http/http_request_headers.h" 21 #include "net/http/http_request_headers.h"
20 #include "net/http/http_request_info.h" 22 #include "net/http/http_request_info.h"
21 #include "net/http/http_response_info.h" 23 #include "net/http/http_response_info.h"
22 #include "net/http/proxy_client_socket.h" 24 #include "net/http/proxy_client_socket.h"
23 #include "net/spdy/spdy_http_stream.h" 25 #include "net/spdy/spdy_http_stream.h"
24 #include "net/spdy/spdy_protocol.h" 26 #include "net/spdy/spdy_protocol.h"
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 153
152 // User specified number of bytes to be written. 154 // User specified number of bytes to be written.
153 int write_buffer_len_; 155 int write_buffer_len_;
154 // Number of bytes written which have not been confirmed 156 // Number of bytes written which have not been confirmed
155 int write_bytes_outstanding_; 157 int write_bytes_outstanding_;
156 158
157 // True if read has ever returned zero for eof. 159 // True if read has ever returned zero for eof.
158 bool eof_has_been_read_; 160 bool eof_has_been_read_;
159 // True if the transport socket has ever sent data. 161 // True if the transport socket has ever sent data.
160 bool was_ever_used_; 162 bool was_ever_used_;
163 // Cached copy of peer and local address from the underlying SPDY stream.
164 AddressList peer_address_;
165 IPEndPoint local_address_;
161 166
162 scoped_ptr<SpdyHttpStream> response_stream_; 167 scoped_ptr<SpdyHttpStream> response_stream_;
163 168
164 base::WeakPtrFactory<SpdyProxyClientSocket> weak_factory_; 169 base::WeakPtrFactory<SpdyProxyClientSocket> weak_factory_;
165 170
166 const BoundNetLog net_log_; 171 const BoundNetLog net_log_;
167 172
168 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); 173 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket);
169 }; 174 };
170 175
171 } // namespace net 176 } // namespace net
172 177
173 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ 178 #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') | net/spdy/spdy_proxy_client_socket.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698