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

Unified Diff: net/base/upload_data_stream.cc

Issue 11439008: net: Change argument of URLRequest::set_upload from UploadData to UploadDataStream (Closed) Base URL: http://git.chromium.org/chromium/src.git@chunk
Patch Set: _ Created 8 years 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_stream.cc
diff --git a/net/base/upload_data_stream.cc b/net/base/upload_data_stream.cc
index c3a2f0bd1dabaf9364b396a8eab401c5cf5c56e2..d8a7080df8ca5f2114996a2000fba4ca81c2e265 100644
--- a/net/base/upload_data_stream.cc
+++ b/net/base/upload_data_stream.cc
@@ -12,24 +12,6 @@
namespace net {
-namespace {
-
-// A subclass of UplodBytesElementReader which owns the data given as a vector.
-class UploadOwnedBytesElementReader : public UploadBytesElementReader {
- public:
- UploadOwnedBytesElementReader(std::vector<char>* data)
- : UploadBytesElementReader(&(*data)[0], data->size()) {
- data_.swap(*data);
- }
-
- virtual ~UploadOwnedBytesElementReader() {}
-
- private:
- std::vector<char> data_;
-};
-
-} // namespace
-
bool UploadDataStream::merge_chunks_ = true;
// static

Powered by Google App Engine
This is Rietveld 408576698