#include "storage/browser/file_system/memory_file_stream_writer.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 {
MemoryFileStreamWriter::MemoryFileStreamWriter(
scoped_refptr<base::TaskRunner> task_runner,
base::WeakPtr<ObfuscatedFileUtilMemoryDelegate> memory_file_util,
const base::FilePath& file_path,
int64_t initial_offset)
: … { … }
MemoryFileStreamWriter::~MemoryFileStreamWriter() = default;
int MemoryFileStreamWriter::Write(net::IOBuffer* buf,
int buf_len,
net::CompletionOnceCallback callback) { … }
void MemoryFileStreamWriter::OnWriteCompleted(
net::CompletionOnceCallback callback,
int result) { … }
int MemoryFileStreamWriter::Cancel(net::CompletionOnceCallback callback) { … }
int MemoryFileStreamWriter::Flush(FlushMode ,
net::CompletionOnceCallback ) { … }
bool MemoryFileStreamWriter::CancelIfRequested() { … }
}