| 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 COMPONENTS_SCHEDULER_CHILD_SCHEDULER_TQM_DELEGATE_IMPL_H_ | 5 #ifndef COMPONENTS_SCHEDULER_CHILD_SCHEDULER_TQM_DELEGATE_IMPL_H_ |
| 6 #define COMPONENTS_SCHEDULER_CHILD_SCHEDULER_TQM_DELEGATE_IMPL_H_ | 6 #define COMPONENTS_SCHEDULER_CHILD_SCHEDULER_TQM_DELEGATE_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| 10 #include "base/time/tick_clock.h" | 11 #include "base/time/tick_clock.h" |
| 11 #include "components/scheduler/child/scheduler_tqm_delegate.h" | 12 #include "components/scheduler/child/scheduler_tqm_delegate.h" |
| 12 #include "components/scheduler/scheduler_export.h" | 13 #include "components/scheduler/scheduler_export.h" |
| 13 | 14 |
| 14 namespace scheduler { | 15 namespace scheduler { |
| 15 | 16 |
| 16 class SCHEDULER_EXPORT SchedulerTqmDelegateImpl : public SchedulerTqmDelegate { | 17 class SCHEDULER_EXPORT SchedulerTqmDelegateImpl : public SchedulerTqmDelegate { |
| 17 public: | 18 public: |
| 18 // |message_loop| is not owned and must outlive the lifetime of this object. | 19 // |message_loop| is not owned and must outlive the lifetime of this object. |
| (...skipping 26 matching lines...) Expand all Loading... |
| 45 base::MessageLoop* message_loop_; | 46 base::MessageLoop* message_loop_; |
| 46 scoped_refptr<SingleThreadTaskRunner> message_loop_task_runner_; | 47 scoped_refptr<SingleThreadTaskRunner> message_loop_task_runner_; |
| 47 scoped_ptr<base::TickClock> time_source_; | 48 scoped_ptr<base::TickClock> time_source_; |
| 48 | 49 |
| 49 DISALLOW_COPY_AND_ASSIGN(SchedulerTqmDelegateImpl); | 50 DISALLOW_COPY_AND_ASSIGN(SchedulerTqmDelegateImpl); |
| 50 }; | 51 }; |
| 51 | 52 |
| 52 } // namespace scheduler | 53 } // namespace scheduler |
| 53 | 54 |
| 54 #endif // COMPONENTS_SCHEDULER_CHILD_SCHEDULER_TQM_DELEGATE_IMPL_H_ | 55 #endif // COMPONENTS_SCHEDULER_CHILD_SCHEDULER_TQM_DELEGATE_IMPL_H_ |
| OLD | NEW |