// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef REMOTING_BASE_AUTO_THREAD_TASK_RUNNER_H_ #define REMOTING_BASE_AUTO_THREAD_TASK_RUNNER_H_ #include "base/functional/callback.h" #include "base/task/single_thread_task_runner.h" #include "build/buildflag.h" namespace remoting { // A wrapper around |SingleThreadTaskRunner| that provides automatic lifetime // management, by posting a caller-supplied task to the underlying task runner // when no more references remain. class AutoThreadTaskRunner : public base::SingleThreadTaskRunner { … }; } // namespace remoting #endif // REMOTING_BASE_AUTO_THREAD_TASK_RUNNER_H_