diff options
author | hashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-28 19:50:40 +0000 |
---|---|---|
committer | hashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-28 19:50:40 +0000 |
commit | 0736d9e6236381ca378e108fd4ba9d794c247a6e (patch) | |
tree | 0984ff7e6927fa95867cc77f48f88f2163b71012 /net/base/upload_element_reader.cc | |
parent | bf63a0c1e70c8973d24c9e2613e2e3adbb7f6b4b (diff) | |
download | chromium_src-0736d9e6236381ca378e108fd4ba9d794c247a6e.zip chromium_src-0736d9e6236381ca378e108fd4ba9d794c247a6e.tar.gz chromium_src-0736d9e6236381ca378e108fd4ba9d794c247a6e.tar.bz2 |
net: Move ownership of UploadDataStream from URLRequestHttpJob to URLRequest
URLRequest creates and owns UploadDataStream.
URLRequest::get_upload_mutable and URLRequest::AppendBytesToUpload are removed because they can modify UploadData after UploadDataStream is created.
Return type of URLRequest::get_upload is changed from UploadData to UploadDataStream.
A number of methods are added to UploadElementReader and its subclasses to support URLRequestAutomationJob and some other users.
BUG=156574
TEST=git try
TBR=jam@chromium.org (for chrome/browser/automation, already reviewed by ananta@chromium.org)
Review URL: https://chromiumcodereview.appspot.com/11419034
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170028 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/upload_element_reader.cc')
-rw-r--r-- | net/base/upload_element_reader.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/base/upload_element_reader.cc b/net/base/upload_element_reader.cc index c1a0115..ad7ed99 100644 --- a/net/base/upload_element_reader.cc +++ b/net/base/upload_element_reader.cc @@ -32,6 +32,14 @@ UploadElementReader* UploadElementReader::Create(const UploadElement& element) { return reader; } +const UploadBytesElementReader* UploadElementReader::AsBytesReader() const { + return NULL; +} + +const UploadFileElementReader* UploadElementReader::AsFileReader() const { + return NULL; +} + int UploadElementReader::InitSync() { NOTREACHED() << "This instance does not support InitSync()."; return ERR_NOT_IMPLEMENTED; |