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

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

Issue 1705253002: TaskScheduler [3/9] Task and Sequence (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@s_1_scheduler_lock
Patch Set: address comments from robliao #13 Created 4 years, 10 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
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_TASK_H_
6 #define BASE_TASK_SCHEDULER_TASK_H_
7
8 #include "base/base_export.h"
9 #include "base/callback_forward.h"
10 #include "base/location.h"
11 #include "base/pending_task.h"
12 #include "base/task_scheduler/task_traits.h"
13 #include "base/time/time.h"
14
15 namespace base {
16 namespace internal {
17
18 // A task is a unit of work inside the task scheduler. Support for tracing and
19 // profiling inherited from PendingTask.
20 struct BASE_EXPORT Task : public PendingTask {
21 Task(const tracked_objects::Location& posted_from,
22 const Closure& task,
23 const TaskTraits& traits,
24 const TimeTicks& sequenced_time);
25 ~Task();
26
27 // The TaskTraits of this task.
28 const TaskTraits traits;
29
30 // The time at which the task was inserted in its sequence. For an undelayed
31 // task, this happens at post time. For a delayed task, this happens some
32 // time after the task's delay has expired. If the task hasn't been inserted
33 // in a sequence yet, the value is a default TimeTicks.
gab 2016/02/19 16:50:47 s/the value is a default TimeTicks/this defaults t
fdoray 2016/02/19 22:28:30 Done.
34 TimeTicks sequenced_time;
35 };
36
37 } // namespace internal
38 } // namespace base
39
40 #endif // BASE_TASK_SCHEDULER_TASK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698