#include "storage/browser/file_system/memory_file_stream_reader.h"
#include <memory>
#include <utility>
#include "base/memory/ptr_util.h"
#include "net/base/io_buffer.h"
#include "net/base/net_errors.h"
namespace storage {
MemoryFileStreamReader::MemoryFileStreamReader(
scoped_refptr<base::TaskRunner> task_runner,
base::WeakPtr<ObfuscatedFileUtilMemoryDelegate> memory_file_util,
const base::FilePath& file_path,
int64_t initial_offset,
const base::Time& expected_modification_time)
: … { … }
MemoryFileStreamReader::~MemoryFileStreamReader() = default;
int MemoryFileStreamReader::Read(net::IOBuffer* buf,
int buf_len,
net::CompletionOnceCallback callback) { … }
void MemoryFileStreamReader::OnReadCompleted(
net::CompletionOnceCallback callback,
int result) { … }
int64_t MemoryFileStreamReader::GetLength(
net::Int64CompletionOnceCallback callback) { … }
void MemoryFileStreamReader::OnGetLengthCompleted(
net::Int64CompletionOnceCallback callback,
int64_t result) { … }
}