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

Unified Diff: net/url_request/url_fetcher_impl.cc

Issue 11843003: Add SetUploadDataStream method to URLFetcher. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & updated for UploadFileElementReader changes Created 7 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: net/url_request/url_fetcher_impl.cc
diff --git a/net/url_request/url_fetcher_impl.cc b/net/url_request/url_fetcher_impl.cc
index cdbd104f204079f46acffe2c21df32247008439b..f7493de4fd43d58e18f94c0dd021cea576f05c87 100644
--- a/net/url_request/url_fetcher_impl.cc
+++ b/net/url_request/url_fetcher_impl.cc
@@ -6,6 +6,7 @@
#include "base/bind.h"
#include "base/message_loop_proxy.h"
+#include "net/base/upload_data_stream.h"
#include "net/url_request/url_fetcher_core.h"
#include "net/url_request/url_fetcher_factory.h"
@@ -24,6 +25,12 @@ URLFetcherImpl::~URLFetcherImpl() {
core_->Stop();
}
+void URLFetcherImpl::SetUploadDataStream(
+ const std::string& upload_content_type,
+ scoped_ptr<UploadDataStream> upload_content) {
+ core_->SetUploadDataStream(upload_content_type, upload_content.Pass());
+}
+
void URLFetcherImpl::SetUploadData(const std::string& upload_content_type,
const std::string& upload_content) {
core_->SetUploadData(upload_content_type, upload_content);

Powered by Google App Engine
This is Rietveld 408576698