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 23 matching lines...) Expand all Loading... |
34 | 34 |
35 int UploadElementReader::InitSync() { | 35 int UploadElementReader::InitSync() { |
36 NOTREACHED() << "This instance does not support InitSync()."; | 36 NOTREACHED() << "This instance does not support InitSync()."; |
37 return ERR_NOT_IMPLEMENTED; | 37 return ERR_NOT_IMPLEMENTED; |
38 } | 38 } |
39 | 39 |
40 bool UploadElementReader::IsInMemory() const { | 40 bool UploadElementReader::IsInMemory() const { |
41 return false; | 41 return false; |
42 } | 42 } |
43 | 43 |
| 44 int UploadElementReader::ReadSync(IOBuffer* buf, int buf_length) { |
| 45 NOTREACHED() << "This instance does not support ReadSync()."; |
| 46 return ERR_NOT_IMPLEMENTED; |
| 47 } |
| 48 |
44 } // namespace net | 49 } // namespace net |
OLD | NEW |