blob: 1b29d5933785d0d4b00b3f9185d9c4d97331d297 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/base/upload_element_reader.h"
#include "base/logging.h"
#include "net/base/net_errors.h"
#include "net/base/upload_element.h"
namespace net {
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;
}
bool UploadElementReader::IsInMemory() const {
return false;
}
int UploadElementReader::ReadSync(IOBuffer* buf, int buf_length) {
NOTREACHED() << "This instance does not support ReadSync().";
return ERR_NOT_IMPLEMENTED;
}
} // namespace net
|