#include "net/disk_cache/simple/simple_entry_operation.h"
#include <limits.h>
#include "net/base/io_buffer.h"
#include "net/disk_cache/disk_cache.h"
#include "net/disk_cache/simple/simple_entry_impl.h"
namespace disk_cache {
SimpleEntryOperation::SimpleEntryOperation(SimpleEntryOperation&& other) =
default;
SimpleEntryOperation::~SimpleEntryOperation() = default;
SimpleEntryOperation SimpleEntryOperation::OpenOperation(
SimpleEntryImpl* entry,
EntryResultState result_state,
EntryResultCallback callback) { … }
SimpleEntryOperation SimpleEntryOperation::CreateOperation(
SimpleEntryImpl* entry,
EntryResultState result_state,
EntryResultCallback callback) { … }
SimpleEntryOperation SimpleEntryOperation::OpenOrCreateOperation(
SimpleEntryImpl* entry,
OpenEntryIndexEnum index_state,
EntryResultState result_state,
EntryResultCallback callback) { … }
SimpleEntryOperation SimpleEntryOperation::CloseOperation(
SimpleEntryImpl* entry) { … }
SimpleEntryOperation SimpleEntryOperation::ReadOperation(
SimpleEntryImpl* entry,
int index,
int offset,
int length,
net::IOBuffer* buf,
CompletionOnceCallback callback) { … }
SimpleEntryOperation SimpleEntryOperation::WriteOperation(
SimpleEntryImpl* entry,
int index,
int offset,
int length,
net::IOBuffer* buf,
bool truncate,
bool optimistic,
CompletionOnceCallback callback) { … }
SimpleEntryOperation SimpleEntryOperation::ReadSparseOperation(
SimpleEntryImpl* entry,
int64_t sparse_offset,
int length,
net::IOBuffer* buf,
CompletionOnceCallback callback) { … }
SimpleEntryOperation SimpleEntryOperation::WriteSparseOperation(
SimpleEntryImpl* entry,
int64_t sparse_offset,
int length,
net::IOBuffer* buf,
CompletionOnceCallback callback) { … }
SimpleEntryOperation SimpleEntryOperation::GetAvailableRangeOperation(
SimpleEntryImpl* entry,
int64_t sparse_offset,
int length,
RangeResultCallback callback) { … }
SimpleEntryOperation SimpleEntryOperation::DoomOperation(
SimpleEntryImpl* entry,
net::CompletionOnceCallback callback) { … }
SimpleEntryOperation::SimpleEntryOperation(SimpleEntryImpl* entry,
net::IOBuffer* buf,
net::CompletionOnceCallback callback,
int offset,
int64_t sparse_offset,
int length,
EntryOperationType type,
OpenEntryIndexEnum index_state,
int index,
bool truncate,
bool optimistic)
: … { … }
}