| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |