chromium/third_party/blink/renderer/platform/disk_data_allocator.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/renderer/platform/disk_data_allocator.h"

#include <algorithm>
#include <utility>

#include "base/compiler_specific.h"
#include "base/containers/contains.h"
#include "base/logging.h"
#include "base/not_fatal_until.h"
#include "base/synchronization/lock.h"
#include "base/threading/thread_restrictions.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/renderer/platform/disk_data_metadata.h"
#include "third_party/blink/renderer/platform/wtf/std_lib_extras.h"
#include "third_party/blink/renderer/platform/wtf/wtf.h"

namespace {
constexpr size_t kMB =;
}

namespace blink {

DiskDataAllocator::DiskDataAllocator() {}

DiskDataAllocator::~DiskDataAllocator() = default;

bool DiskDataAllocator::may_write() {}

void DiskDataAllocator::set_may_write_for_testing(bool may_write) {}

DiskDataMetadata DiskDataAllocator::FindFreeChunk(size_t size) {}

void DiskDataAllocator::ReleaseChunk(const DiskDataMetadata& metadata) {}

std::unique_ptr<ReservedChunk> DiskDataAllocator::TryReserveChunk(size_t size) {}

std::unique_ptr<DiskDataMetadata> DiskDataAllocator::Write(
    std::unique_ptr<ReservedChunk> chunk,
    const void* data) {}

void DiskDataAllocator::Read(const DiskDataMetadata& metadata, void* data) {}

void DiskDataAllocator::Discard(std::unique_ptr<DiskDataMetadata> metadata) {}

int DiskDataAllocator::DoWrite(int64_t offset, const char* data, int size) {}

void DiskDataAllocator::DoRead(int64_t offset, char* data, int size) {}

void DiskDataAllocator::ProvideTemporaryFile(base::File file) {}

// static
DiskDataAllocator& DiskDataAllocator::Instance() {}

// static
void DiskDataAllocator::Bind(
    mojo::PendingReceiver<mojom::blink::DiskAllocator> receiver) {}

}  // namespace blink