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

Side by Side Diff: components/scheduler/child/null_task_queue.h

Issue 1223163006: Implement PostDelayedTaskAt for guaranteed timer ordering (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 years, 5 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 2015 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 COMPONENTS_SCHEDULER_NULL_CHILD_TASK_QUEUE_H_
6 #define COMPONENTS_SCHEDULER_NULL_CHILD_TASK_QUEUE_H_
7
8 #include "components/scheduler/child/task_queue.h"
9 #include "components/scheduler/scheduler_export.h"
10
11 namespace scheduler {
12
13 class SCHEDULER_EXPORT NullTaskQueue : public TaskQueue {
alex clarke (OOO till 29th) 2015/07/16 09:29:00 The .cc file for this seems to be missing.
Sami 2015/07/16 12:19:32 Welp I guess that explains the failing try jobs. T
14 public:
15 NullTaskQueue(scoped_refptr<base::SingleThreadTaskRunner> task_runner);
16
17 // TaskQueue implementation
18 bool RunsTasksOnCurrentThread() const override;
19 bool PostDelayedTask(const tracked_objects::Location& from_here,
20 const base::Closure& task,
21 base::TimeDelta delay) override;
22 bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here,
23 const base::Closure& task,
24 base::TimeDelta delay) override;
25 bool PostDelayedTaskAt(const tracked_objects::Location& from_here,
26 const base::Closure& task,
27 base::TimeTicks desired_run_time) override;
28
29 protected:
30 ~NullTaskQueue() override;
31
32 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
33
34 DISALLOW_COPY_AND_ASSIGN(NullTaskQueue);
35 };
36
37 } // namespace scheduler
38
39 #endif // COMPONENTS_SCHEDULER_CHILD_NULL_TASK_QUEUE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698