// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/barrier_closure.h" #include <utility> #include "base/atomic_ref_count.h" #include "base/functional/bind.h" #include "base/memory/ptr_util.h" #include "base/numerics/safe_conversions.h" namespace base { namespace { // Maintains state for a BarrierClosure. class BarrierInfo { … }; BarrierInfo::BarrierInfo(size_t num_callbacks, OnceClosure done_closure) : … { … } void BarrierInfo::Run() { … } void ShouldNeverRun() { … } } // namespace RepeatingClosure BarrierClosure(size_t num_callbacks_left, OnceClosure done_closure) { … } } // namespace base