#include "third_party/blink/renderer/platform/scheduler/common/blink_scheduler_single_thread_task_runner.h"
#include <memory>
#include <utility>
#include "base/location.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/scoped_refptr.h"
#include "base/task/single_thread_task_runner.h"
namespace blink::scheduler {
namespace {
void DeleteOrReleaseSoonImpl(
const base::Location& from_here,
void (*deleter)(const void*),
const void* object,
scoped_refptr<base::SingleThreadTaskRunner> preferred_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> fallback_task_runner);
class DeleteHelper { … };
void DeleteOrReleaseSoonImpl(
const base::Location& from_here,
void (*deleter)(const void*),
const void* object,
scoped_refptr<base::SingleThreadTaskRunner> preferred_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> fallback_task_runner) { … }
}
BlinkSchedulerSingleThreadTaskRunner::BlinkSchedulerSingleThreadTaskRunner(
scoped_refptr<base::SingleThreadTaskRunner> wrapped_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> thread_task_runner)
: … { … }
BlinkSchedulerSingleThreadTaskRunner::~BlinkSchedulerSingleThreadTaskRunner() =
default;
bool BlinkSchedulerSingleThreadTaskRunner::DeleteOrReleaseSoonInternal(
const base::Location& from_here,
void (*deleter)(const void*),
const void* object) { … }
}