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

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
« no previous file with comments | « no previous file | chrome/common/net/url_fetcher.cc » ('j') | chrome/common/net/url_fetcher.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..417702b890d5611cf3657e80c5e47f51f0a14b58 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.
+ // This may only be called before calling Start().
+ // Use AppendChunkToUpload() to give the data chunks after calling Start().
+ void set_chunked_upload(const std::string& upload_content_type);
+
+ // Adds the given bytes to a requests's POST data transmitted using chunked
wtc 2011/01/20 00:29:47 Nit: requests's => request's
+ // transfer encoding.
+ // This method should be called ONLY after calling Start().
+ void AppendChunkToUpload(const std::string& data);
+ void MarkEndOfChunks();
wtc 2011/01/20 00:29:47 Document the MarkEndOfChunks method.
+
// 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);
« no previous file with comments | « no previous file | chrome/common/net/url_fetcher.cc » ('j') | chrome/common/net/url_fetcher.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698