| OLD | NEW |
| 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 THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_CHILD_SCHEDULER_TQM_DELEGAT
E_IMPL_H_ | 5 #ifndef THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_CHILD_SCHEDULER_TQM_DELEGAT
E_IMPL_H_ |
| 6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_CHILD_SCHEDULER_TQM_DELEGAT
E_IMPL_H_ | 6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_CHILD_SCHEDULER_TQM_DELEGAT
E_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 scoped_refptr<base::SingleThreadTaskRunner> task_runner) override; | 28 scoped_refptr<base::SingleThreadTaskRunner> task_runner) override; |
| 29 void RestoreDefaultTaskRunner() override; | 29 void RestoreDefaultTaskRunner() override; |
| 30 bool PostDelayedTask(const tracked_objects::Location& from_here, | 30 bool PostDelayedTask(const tracked_objects::Location& from_here, |
| 31 base::OnceClosure task, | 31 base::OnceClosure task, |
| 32 base::TimeDelta delay) override; | 32 base::TimeDelta delay) override; |
| 33 bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here, | 33 bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here, |
| 34 base::OnceClosure task, | 34 base::OnceClosure task, |
| 35 base::TimeDelta delay) override; | 35 base::TimeDelta delay) override; |
| 36 bool RunsTasksOnCurrentThread() const override; | 36 bool RunsTasksOnCurrentThread() const override; |
| 37 bool IsNested() const override; | 37 bool IsNested() const override; |
| 38 void AddNestingObserver( | 38 void AddNestingObserver(base::RunLoop::NestingObserver* observer) override; |
| 39 base::MessageLoop::NestingObserver* observer) override; | 39 void RemoveNestingObserver(base::RunLoop::NestingObserver* observer) override; |
| 40 void RemoveNestingObserver( | |
| 41 base::MessageLoop::NestingObserver* observer) override; | |
| 42 base::TimeTicks NowTicks() override; | 40 base::TimeTicks NowTicks() override; |
| 43 | 41 |
| 44 protected: | 42 protected: |
| 45 ~SchedulerTqmDelegateImpl() override; | 43 ~SchedulerTqmDelegateImpl() override; |
| 46 | 44 |
| 47 private: | 45 private: |
| 48 SchedulerTqmDelegateImpl(base::MessageLoop* message_loop, | 46 SchedulerTqmDelegateImpl(base::MessageLoop* message_loop, |
| 49 std::unique_ptr<base::TickClock> time_source); | 47 std::unique_ptr<base::TickClock> time_source); |
| 50 | 48 |
| 51 // Not owned. | 49 // Not owned. |
| 52 base::MessageLoop* message_loop_; | 50 base::MessageLoop* message_loop_; |
| 53 scoped_refptr<SingleThreadTaskRunner> message_loop_task_runner_; | 51 scoped_refptr<SingleThreadTaskRunner> message_loop_task_runner_; |
| 54 std::unique_ptr<base::TickClock> time_source_; | 52 std::unique_ptr<base::TickClock> time_source_; |
| 55 | 53 |
| 56 DISALLOW_COPY_AND_ASSIGN(SchedulerTqmDelegateImpl); | 54 DISALLOW_COPY_AND_ASSIGN(SchedulerTqmDelegateImpl); |
| 57 }; | 55 }; |
| 58 | 56 |
| 59 } // namespace scheduler | 57 } // namespace scheduler |
| 60 } // namespace blink | 58 } // namespace blink |
| 61 | 59 |
| 62 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_CHILD_SCHEDULER_TQM_DELE
GATE_IMPL_H_ | 60 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_CHILD_SCHEDULER_TQM_DELE
GATE_IMPL_H_ |
| OLD | NEW |