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

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

Issue 10910268: net: Make UploadDataStream::Read() asynchronous (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 years, 2 months 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 | Annotate | Revision Log
« 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 23 matching lines...) Expand all
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
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