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

Unified Diff: net/base/upload_bytes_element_reader.h

Issue 11419034: net: Move ownership of UploadDataStream from URLRequestHttpJob to URLRequest (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove a local variable Created 8 years, 1 month 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_bytes_element_reader.h
diff --git a/net/base/upload_bytes_element_reader.h b/net/base/upload_bytes_element_reader.h
index e9b99679d02a5fa3b68f4ed2038dac81736688aa..afc9560e54aec448732fd3a54db87b77ccda8b42 100644
--- a/net/base/upload_bytes_element_reader.h
+++ b/net/base/upload_bytes_element_reader.h
@@ -13,10 +13,14 @@ namespace net {
// An UploadElementReader implementation for bytes.
class NET_EXPORT_PRIVATE UploadBytesElementReader : public UploadElementReader {
public:
- UploadBytesElementReader(const char* bytes, int bytes_length);
+ UploadBytesElementReader(const char* bytes, int length);
virtual ~UploadBytesElementReader();
+ const char* bytes() const { return bytes_; }
+ int length() const { return length_; }
+
// UploadElementReader overrides:
+ virtual const UploadBytesElementReader* AsBytesReader() const OVERRIDE;
virtual int Init(const CompletionCallback& callback) OVERRIDE;
virtual int InitSync() OVERRIDE;
virtual uint64 GetContentLength() const OVERRIDE;
@@ -29,7 +33,7 @@ class NET_EXPORT_PRIVATE UploadBytesElementReader : public UploadElementReader {
private:
const char* const bytes_;
- const int bytes_length_;
+ const int length_;
int offset_;
DISALLOW_COPY_AND_ASSIGN(UploadBytesElementReader);
« no previous file with comments | « chrome/browser/sessions/better_session_restore_browsertest.cc ('k') | net/base/upload_bytes_element_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698