OLD | NEW |
---|---|
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_HTTP_HTTP_STREAM_PARSER_H_ | 5 #ifndef NET_HTTP_HTTP_STREAM_PARSER_H_ |
6 #define NET_HTTP_HTTP_STREAM_PARSER_H_ | 6 #define NET_HTTP_HTTP_STREAM_PARSER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
182 CompletionCallback* scheduled_callback_; | 182 CompletionCallback* scheduled_callback_; |
183 | 183 |
184 // The underlying socket. | 184 // The underlying socket. |
185 ClientSocketHandle* const connection_; | 185 ClientSocketHandle* const connection_; |
186 | 186 |
187 BoundNetLog net_log_; | 187 BoundNetLog net_log_; |
188 | 188 |
189 // Callback to be used when doing IO. | 189 // Callback to be used when doing IO. |
190 CompletionCallbackImpl<HttpStreamParser> io_callback_; | 190 CompletionCallbackImpl<HttpStreamParser> io_callback_; |
191 | 191 |
192 // Stores an encoded chunk for chunked uploads. | |
willchan no longer on Chromium
2011/02/24 19:41:34
Please add a note that this should be improved not
| |
193 scoped_refptr<IOBuffer> chunk_buf_; | |
194 size_t chunk_length_; | |
195 size_t chunk_length_without_encoding_; | |
196 bool sent_last_chunk_; | |
197 | |
192 DISALLOW_COPY_AND_ASSIGN(HttpStreamParser); | 198 DISALLOW_COPY_AND_ASSIGN(HttpStreamParser); |
193 }; | 199 }; |
194 | 200 |
195 } // namespace net | 201 } // namespace net |
196 | 202 |
197 #endif // NET_HTTP_HTTP_STREAM_PARSER_H_ | 203 #endif // NET_HTTP_HTTP_STREAM_PARSER_H_ |
OLD | NEW |