summaryrefslogtreecommitdiffstats
path: root/net/url_request/url_request.h
diff options
context:
space:
mode:
authorsatish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-04 07:54:39 +0000
committersatish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-04 07:54:39 +0000
commitbf96f533df6515f9ddea3278515a77ab81c00263 (patch)
tree72ba664e83a3a5880b1b16bd379d041c2e85e368 /net/url_request/url_request.h
parent26c2f823d194dc69819b7def92f920f0ec861df5 (diff)
downloadchromium_src-bf96f533df6515f9ddea3278515a77ab81c00263.zip
chromium_src-bf96f533df6515f9ddea3278515a77ab81c00263.tar.gz
chromium_src-bf96f533df6515f9ddea3278515a77ab81c00263.tar.bz2
Add chunked uploads support to SPDY
As part of this, I had to move the chunked encoding part from UploadData::Element::SetChunk to HttpStreamParser::DoSendBody as SPDY doesn't have this encoded format and UploadData needs to serve both. BUG=none TEST=net_unittests (2 new tests added) Review URL: http://codereview.chromium.org/6292013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76892 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request/url_request.h')
-rw-r--r--net/url_request/url_request.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/net/url_request/url_request.h b/net/url_request/url_request.h
index a2ad24b..849a03b 100644
--- a/net/url_request/url_request.h
+++ b/net/url_request/url_request.h
@@ -330,10 +330,9 @@ class URLRequest : public base::NonThreadSafe {
// call MarkEndOfChunks() to indicate the end of upload data.
//
// This method may be called only after calling EnableChunkedUpload().
- void AppendChunkToUpload(const char* bytes, int bytes_len);
-
- // Indicates the end of a chunked transfer encoded request body.
- void MarkEndOfChunks();
+ void AppendChunkToUpload(const char* bytes,
+ int bytes_len,
+ bool is_last_chunk);
// Set the upload data directly.
void set_upload(net::UploadData* upload);