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

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

Issue 1250613002: scheduler: Remove task observer shenanigans (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed a failing test. 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_SCHEDULER_CHILD_SCHEDULER_TASK_RUNNER_DELEGATE_IMPL_H_ 5 #ifndef COMPONENTS_SCHEDULER_CHILD_SCHEDULER_TASK_RUNNER_DELEGATE_IMPL_H_
6 #define COMPONENTS_SCHEDULER_CHILD_SCHEDULER_TASK_RUNNER_DELEGATE_IMPL_H_ 6 #define COMPONENTS_SCHEDULER_CHILD_SCHEDULER_TASK_RUNNER_DELEGATE_IMPL_H_
7 7
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "components/scheduler/child/scheduler_task_runner_delegate.h" 9 #include "components/scheduler/child/scheduler_task_runner_delegate.h"
10 #include "components/scheduler/scheduler_export.h" 10 #include "components/scheduler/scheduler_export.h"
(...skipping 12 matching lines...) Expand all
23 scoped_refptr<base::SingleThreadTaskRunner> task_runner) override; 23 scoped_refptr<base::SingleThreadTaskRunner> task_runner) override;
24 void RestoreDefaultTaskRunner() override; 24 void RestoreDefaultTaskRunner() override;
25 bool PostDelayedTask(const tracked_objects::Location& from_here, 25 bool PostDelayedTask(const tracked_objects::Location& from_here,
26 const base::Closure& task, 26 const base::Closure& task,
27 base::TimeDelta delay) override; 27 base::TimeDelta delay) override;
28 bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here, 28 bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here,
29 const base::Closure& task, 29 const base::Closure& task,
30 base::TimeDelta delay) override; 30 base::TimeDelta delay) override;
31 bool RunsTasksOnCurrentThread() const override; 31 bool RunsTasksOnCurrentThread() const override;
32 bool IsNested() const override; 32 bool IsNested() const override;
33 void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer) override;
34 void RemoveTaskObserver(
35 base::MessageLoop::TaskObserver* task_observer) override;
36 33
37 protected: 34 protected:
38 ~SchedulerTaskRunnerDelegateImpl() override; 35 ~SchedulerTaskRunnerDelegateImpl() override;
39 36
40 private: 37 private:
41 explicit SchedulerTaskRunnerDelegateImpl(base::MessageLoop* message_loop); 38 explicit SchedulerTaskRunnerDelegateImpl(base::MessageLoop* message_loop);
42 39
43 // Not owned. 40 // Not owned.
44 base::MessageLoop* message_loop_; 41 base::MessageLoop* message_loop_;
45 scoped_refptr<SingleThreadTaskRunner> message_loop_task_runner_; 42 scoped_refptr<SingleThreadTaskRunner> message_loop_task_runner_;
46 43
47 DISALLOW_COPY_AND_ASSIGN(SchedulerTaskRunnerDelegateImpl); 44 DISALLOW_COPY_AND_ASSIGN(SchedulerTaskRunnerDelegateImpl);
48 }; 45 };
49 46
50 } // namespace scheduler 47 } // namespace scheduler
51 48
52 #endif // COMPONENTS_SCHEDULER_CHILD_SCHEDULER_TASK_RUNNER_DELEGATE_IMPL_H_ 49 #endif // COMPONENTS_SCHEDULER_CHILD_SCHEDULER_TASK_RUNNER_DELEGATE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698