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

Unified Diff: net/base/upload_data.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 side-by-side diff with in-line comments
Download patch
Index: net/base/upload_data.h
diff --git a/net/base/upload_data.h b/net/base/upload_data.h
index e746f6522ef7fda3ebc5be57218066efd3ebb282..b9cc86451ff970dd9d23ae5857c5eb1205031730 100644
--- a/net/base/upload_data.h
+++ b/net/base/upload_data.h
@@ -96,7 +96,7 @@ class UploadData : public base::RefCounted<UploadData> {
// Though similar to bytes, a chunk indicates that the element is sent via
// chunked transfer encoding and not buffered until the full upload data
// is available.
- void SetToChunk(const char* bytes, int bytes_len);
+ void SetToChunk(const char* bytes, int bytes_len, bool is_last_chunk);
bool is_last_chunk() const { return is_last_chunk_; }
// Sets whether this is the last chunk. Used during IPC marshalling.
@@ -153,8 +153,8 @@ class UploadData : public base::RefCounted<UploadData> {
void AppendBlob(const GURL& blob_url);
// Adds the given chunk of bytes to be sent immediately with chunked transfer
- // encoding. Set bytes_len to zero for the last chunk.
- void AppendChunk(const char* bytes, int bytes_len);
+ // encoding.
+ void AppendChunk(const char* bytes, int bytes_len, bool is_last_chunk);
// Sets the callback to be invoked when a new chunk is available to upload.
void set_chunk_callback(ChunkCallback* callback);

Powered by Google App Engine
This is Rietveld 408576698