#include "base/one_shot_event.h"
#include <stddef.h>
#include <algorithm>
#include <utility>
#include "base/functional/callback.h"
#include "base/location.h"
#include "base/sequence_checker.h"
#include "base/task/task_runner.h"
#include "base/time/time.h"
namespace base {
struct OneShotEvent::TaskInfo { … };
OneShotEvent::OneShotEvent() { … }
OneShotEvent::OneShotEvent(bool signaled) : … { … }
OneShotEvent::~OneShotEvent() = default;
void OneShotEvent::Post(const Location& from_here,
OnceClosure task,
scoped_refptr<TaskRunner> runner) const { … }
void OneShotEvent::PostDelayed(const Location& from_here,
OnceClosure task,
const TimeDelta& delay,
scoped_refptr<TaskRunner> runner) const { … }
void OneShotEvent::Signal() { … }
}