#include "base/task/common/scoped_defer_task_posting.h"
#include "base/compiler_specific.h"
#include "third_party/abseil-cpp/absl/base/attributes.h"
namespace base {
namespace {
ABSL_CONST_INIT thread_local ScopedDeferTaskPosting* scoped_defer_task_posting = …;
}
void ScopedDeferTaskPosting::PostOrDefer(
scoped_refptr<SequencedTaskRunner> task_runner,
const Location& from_here,
OnceClosure task,
base::TimeDelta delay) { … }
ScopedDeferTaskPosting* ScopedDeferTaskPosting::Get() { … }
bool ScopedDeferTaskPosting::Set(ScopedDeferTaskPosting* scope) { … }
bool ScopedDeferTaskPosting::IsPresent() { … }
ScopedDeferTaskPosting::ScopedDeferTaskPosting() { … }
ScopedDeferTaskPosting::~ScopedDeferTaskPosting() { … }
ScopedDeferTaskPosting::DeferredTask::DeferredTask(
scoped_refptr<SequencedTaskRunner> task_runner,
Location from_here,
OnceClosure task,
base::TimeDelta delay)
: … { … }
ScopedDeferTaskPosting::DeferredTask::DeferredTask(DeferredTask&&) = default;
ScopedDeferTaskPosting::DeferredTask::~DeferredTask() = default;
void ScopedDeferTaskPosting::DeferTaskPosting(
scoped_refptr<SequencedTaskRunner> task_runner,
const Location& from_here,
OnceClosure task,
base::TimeDelta delay) { … }
}