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

Side by Side Diff: net/http/http_stream_parser.h

Issue 6292013: Add chunked uploads support to SPDY (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 10 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) 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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698