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

Unified Diff: chrome/common/net/url_fetcher.h

Issue 6134003: Prototype of chunked transfer encoded POST. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 11 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: chrome/common/net/url_fetcher.h
diff --git a/chrome/common/net/url_fetcher.h b/chrome/common/net/url_fetcher.h
index 733fd92f28d083ed2d9aae698bc9237bb5051a50..a546a86fa76cd918769f2cf61a7c7da3534cf54d 100644
--- a/chrome/common/net/url_fetcher.h
+++ b/chrome/common/net/url_fetcher.h
@@ -132,6 +132,17 @@ class URLFetcher {
void set_upload_data(const std::string& upload_content_type,
const std::string& upload_content);
+ // Indicates that the POST data is sent via chunked transfer encoding.
+ // Use add_upload_data_chunk() to give the data chunks before or after calling
vandebo (ex-Chrome) 2011/01/14 05:53:44 You may want to note that this must be called befo
Satish 2011/01/14 18:09:29 Done.
+ // Start().
+ void set_chunked_upload(const std::string& upload_content_type);
+
+ // Adds the given bytes to a requests's POST data transmitted using chunked
+ // transfer encoding.
+ // This method should be called ONLY after calling Start().
+ void AppendChunkToUpload(const std::string& data);
+ void MarkEndOfChunks();
+
// Set one or more load flags as defined in net/base/load_flags.h. Must be
// called before the request is started.
void set_load_flags(int load_flags);

Powered by Google App Engine
This is Rietveld 408576698