1 // Copyright 2018 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef BASE_UPDATEABLE_SEQUENCED_TASK_RUNNER_H_
6 #define BASE_UPDATEABLE_SEQUENCED_TASK_RUNNER_H_
8 #include "base/sequenced_task_runner.h"
9 #include "base/task/task_traits.h"
13 // A SequencedTaskRunner whose posted tasks' priorities can be updated.
14 class BASE_EXPORT UpdateableSequencedTaskRunner : public SequencedTaskRunner {
16 // Updates the priority for tasks posted through this TaskRunner to
18 virtual void UpdatePriority(TaskPriority priority) = 0;
21 UpdateableSequencedTaskRunner() = default;
22 ~UpdateableSequencedTaskRunner() override = default;
24 DISALLOW_COPY_AND_ASSIGN(UpdateableSequencedTaskRunner);
29 #endif // BASE_UPDATEABLE_SEQUENCED_TASK_RUNNER_H_