#include "services/network/shared_dictionary/shared_dictionary_writer_on_disk.h"
#include <limits>
#include "base/functional/callback_helpers.h"
#include "base/numerics/checked_math.h"
#include "services/network/shared_dictionary/shared_dictionary_constants.h"
#include "services/network/shared_dictionary/shared_dictionary_disk_cache.h"
namespace network {
SharedDictionaryWriterOnDisk::SharedDictionaryWriterOnDisk(
const base::UnguessableToken& token,
FinishCallback callback,
base::WeakPtr<SharedDictionaryDiskCache> disk_cahe)
: … { … }
SharedDictionaryWriterOnDisk::~SharedDictionaryWriterOnDisk() { … }
void SharedDictionaryWriterOnDisk::Initialize() { … }
void SharedDictionaryWriterOnDisk::Append(const char* buf, int num_bytes) { … }
void SharedDictionaryWriterOnDisk::Finish() { … }
void SharedDictionaryWriterOnDisk::OnEntry(disk_cache::EntryResult result) { … }
void SharedDictionaryWriterOnDisk::WriteData(
scoped_refptr<net::StringIOBuffer> buffer) { … }
void SharedDictionaryWriterOnDisk::OnWrittenData(int expected_result,
int result) { … }
void SharedDictionaryWriterOnDisk::OnFailed(Result result) { … }
void SharedDictionaryWriterOnDisk::MaybeFinish() { … }
}