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

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, 9 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.
193 // Note: This should perhaps be improved to not create copies of the data.
194 scoped_refptr<IOBuffer> chunk_buf_;
195 size_t chunk_length_;
196 size_t chunk_length_without_encoding_;
197 bool sent_last_chunk_;
198
192 DISALLOW_COPY_AND_ASSIGN(HttpStreamParser); 199 DISALLOW_COPY_AND_ASSIGN(HttpStreamParser);
193 }; 200 };
194 201
195 } // namespace net 202 } // namespace net
196 203
197 #endif // NET_HTTP_HTTP_STREAM_PARSER_H_ 204 #endif // NET_HTTP_HTTP_STREAM_PARSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698