// Copyright 2020 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef BASE_TASK_BIND_POST_TASK_INTERNAL_H_ #define BASE_TASK_BIND_POST_TASK_INTERNAL_H_ #include <utility> #include "base/check.h" #include "base/functional/bind.h" #include "base/functional/callback.h" #include "base/location.h" #include "base/task/task_runner.h" #include "base/task/thread_pool/thread_pool_instance.h" namespace base { namespace internal { // Helper class to ensure that the input callback is always invoked and // destroyed on the provided task runner. template <typename CallbackType> class BindPostTaskTrampoline { … }; } // namespace internal } // namespace base #endif // BASE_TASK_BIND_POST_TASK_INTERNAL_H_