Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: base/task_scheduler/scheduler_task_executor.h

Issue 1708773002: TaskScheduler [7] SchedulerThreadPool (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@s_5_worker_thread
Patch Set: fix windows build error Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/task_scheduler/priority_queue.h ('k') | base/task_scheduler/scheduler_thread_pool.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 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.
4
5 #ifndef BASE_TASK_SCHEDULER_SCHEDULER_TASK_EXECUTOR_H_
6 #define BASE_TASK_SCHEDULER_SCHEDULER_TASK_EXECUTOR_H_
7
8 #include <memory>
9
10 #include "base/base_export.h"
11 #include "base/memory/ref_counted.h"
12 #include "base/task_scheduler/sequence.h"
13 #include "base/task_scheduler/task.h"
14
15 namespace base {
16 namespace internal {
17
18 // Interface for a component that runs Tasks.
19 class BASE_EXPORT SchedulerTaskExecutor {
20 public:
21 virtual ~SchedulerTaskExecutor() = default;
22
23 // Posts |task| to be executed by this component as part of |sequence|. The
24 // scheduler's TaskTracker must have allowed |task| to be posted before this
25 // is called. This must only be called after |task|'s delayed run time.
26 virtual void PostTaskWithSequence(std::unique_ptr<Task> task,
27 scoped_refptr<Sequence> sequence) = 0;
28 };
29
30 } // namespace internal
31 } // namespace base
32
33 #endif // BASE_TASK_SCHEDULER_SCHEDULER_TASK_EXECUTOR_H_
OLDNEW
« no previous file with comments | « base/task_scheduler/priority_queue.h ('k') | base/task_scheduler/scheduler_thread_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698