OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "public/platform/scheduler/child/single_thread_idle_task_runner.h" | 5 #include "public/platform/scheduler/child/single_thread_idle_task_runner.h" |
6 | 6 |
7 #include "base/location.h" | 7 #include "base/location.h" |
| 8 #include "base/single_thread_task_runner.h" |
8 #include "base/trace_event/blame_context.h" | 9 #include "base/trace_event/blame_context.h" |
9 #include "base/trace_event/trace_event.h" | 10 #include "base/trace_event/trace_event.h" |
10 | 11 |
11 namespace blink { | 12 namespace blink { |
12 namespace scheduler { | 13 namespace scheduler { |
13 | 14 |
14 SingleThreadIdleTaskRunner::SingleThreadIdleTaskRunner( | 15 SingleThreadIdleTaskRunner::SingleThreadIdleTaskRunner( |
15 scoped_refptr<base::SingleThreadTaskRunner> idle_priority_task_runner, | 16 scoped_refptr<base::SingleThreadTaskRunner> idle_priority_task_runner, |
16 Delegate* delegate) | 17 Delegate* delegate) |
17 : idle_priority_task_runner_(idle_priority_task_runner), | 18 : idle_priority_task_runner_(idle_priority_task_runner), |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 delegate_->DidProcessIdleTask(); | 90 delegate_->DidProcessIdleTask(); |
90 } | 91 } |
91 | 92 |
92 void SingleThreadIdleTaskRunner::SetBlameContext( | 93 void SingleThreadIdleTaskRunner::SetBlameContext( |
93 base::trace_event::BlameContext* blame_context) { | 94 base::trace_event::BlameContext* blame_context) { |
94 blame_context_ = blame_context; | 95 blame_context_ = blame_context; |
95 } | 96 } |
96 | 97 |
97 } // namespace scheduler | 98 } // namespace scheduler |
98 } // namespace blink | 99 } // namespace blink |
OLD | NEW |