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_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 Loading... |
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_ |
OLD | NEW |