chromium/components/offline_pages/task/task_queue.cc

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

#include "components/offline_pages/task/task_queue.h"

#include <utility>

#include "base/functional/bind.h"
#include "base/logging.h"
#include "base/memory/scoped_refptr.h"
#include "base/memory/weak_ptr.h"
#include "base/notreached.h"
#include "base/task/single_thread_task_runner.h"

namespace offline_pages {

struct TaskQueue::Entry {};

TaskQueue::TaskQueue(Delegate* delegate)
    :{}

TaskQueue::~TaskQueue() {}

void TaskQueue::AddTask(std::unique_ptr<Task> task) {}

void TaskQueue::AddTask(const base::Location& from_here,
                        std::unique_ptr<Task> task) {}

bool TaskQueue::HasPendingTasks() const {}

bool TaskQueue::HasRunningTask() const {}

void TaskQueue::StartTaskIfAvailable() {}

void TaskQueue::RunCurrentTask() {}

void TaskQueue::ResumeCurrentTask(base::OnceClosure on_resume) {}

// static
void TaskQueue::TaskCompletedCallback(
    scoped_refptr<base::SingleThreadTaskRunner> task_runner,
    base::WeakPtr<TaskQueue> task_queue,
    Task* task) {}

void TaskQueue::TaskCompleted(Task* task) {}

void TaskQueue::SuspendTask(Task* task) {}

void TaskQueue::ResumeTask(Task* task, base::OnceClosure on_resume) {}

void TaskQueue::InformTaskQueueIsIdle() {}

// Returns a human-readable string describing the contents of the task queue.
std::string TaskQueue::GetStateForTesting() const {}

}  // namespace offline_pages