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

Side by Side Diff: net/base/upload_element_reader.cc

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 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 unified diff | Download patch
« no previous file with comments | « net/base/upload_element_reader.h ('k') | net/base/upload_file_element_reader.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/base/upload_element_reader.h" 5 #include "net/base/upload_element_reader.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "net/base/net_errors.h" 8 #include "net/base/net_errors.h"
9 #include "net/base/upload_bytes_element_reader.h" 9 #include "net/base/upload_bytes_element_reader.h"
10 #include "net/base/upload_element.h" 10 #include "net/base/upload_element.h"
(...skipping 14 matching lines...) Expand all
25 element.file_path(), 25 element.file_path(),
26 element.file_range_offset(), 26 element.file_range_offset(),
27 element.file_range_length(), 27 element.file_range_length(),
28 element.expected_file_modification_time()); 28 element.expected_file_modification_time());
29 break; 29 break;
30 } 30 }
31 DCHECK(reader); 31 DCHECK(reader);
32 return reader; 32 return reader;
33 } 33 }
34 34
35 const UploadBytesElementReader* UploadElementReader::AsBytesReader() const {
36 return NULL;
37 }
38
39 const UploadFileElementReader* UploadElementReader::AsFileReader() const {
40 return NULL;
41 }
42
35 int UploadElementReader::InitSync() { 43 int UploadElementReader::InitSync() {
36 NOTREACHED() << "This instance does not support InitSync()."; 44 NOTREACHED() << "This instance does not support InitSync().";
37 return ERR_NOT_IMPLEMENTED; 45 return ERR_NOT_IMPLEMENTED;
38 } 46 }
39 47
40 bool UploadElementReader::IsInMemory() const { 48 bool UploadElementReader::IsInMemory() const {
41 return false; 49 return false;
42 } 50 }
43 51
44 int UploadElementReader::ReadSync(IOBuffer* buf, int buf_length) { 52 int UploadElementReader::ReadSync(IOBuffer* buf, int buf_length) {
45 NOTREACHED() << "This instance does not support ReadSync()."; 53 NOTREACHED() << "This instance does not support ReadSync().";
46 return ERR_NOT_IMPLEMENTED; 54 return ERR_NOT_IMPLEMENTED;
47 } 55 }
48 56
49 } // namespace net 57 } // namespace net
OLDNEW
« no previous file with comments | « net/base/upload_element_reader.h ('k') | net/base/upload_file_element_reader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698