chromium/net/disk_cache/blockfile/in_flight_io.cc

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

#include "net/disk_cache/blockfile/in_flight_io.h"

#include "base/functional/bind.h"
#include "base/location.h"
#include "base/synchronization/waitable_event.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/single_thread_task_runner.h"
#include "base/threading/thread_restrictions.h"

namespace disk_cache {

BackgroundIO::BackgroundIO(InFlightIO* controller)
    :{}

// Runs on the primary thread.
void BackgroundIO::OnIOSignalled() {}

void BackgroundIO::Cancel() {}

void BackgroundIO::ClearController() {}

BackgroundIO::~BackgroundIO() = default;

// ---------------------------------------------------------------------------

InFlightIO::InFlightIO()
    :{}

InFlightIO::~InFlightIO() = default;

// Runs on the background thread.
void BackgroundIO::NotifyController() {}

void InFlightIO::WaitForPendingIO() {}

void InFlightIO::DropPendingIO() {}

// Runs in a background sequence.
void InFlightIO::OnIOComplete(BackgroundIO* operation) {}

// Runs on the primary thread.
void InFlightIO::InvokeCallback(BackgroundIO* operation, bool cancel_task) {}

// Runs on the primary thread.
void InFlightIO::OnOperationPosted(BackgroundIO* operation) {}

}  // namespace disk_cache