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 #include "public/platform/WebScheduler.h" | 5 #include "platform/scheduler/child/web_scheduler.h" |
6 | 6 |
7 #include "platform/WebFrameScheduler.h" | 7 #include "platform/WebFrameScheduler.h" |
8 #include "platform/wtf/Assertions.h" | 8 #include "platform/wtf/Assertions.h" |
9 #include "public/platform/WebTraceLocation.h" | 9 #include "public/platform/WebTraceLocation.h" |
10 | 10 |
11 namespace blink { | 11 namespace blink { |
12 | 12 |
13 namespace { | 13 namespace { |
14 | 14 |
15 class IdleTaskRunner : public WebThread::IdleTask { | 15 class IdleTaskRunner : public WebThread::IdleTask { |
(...skipping 20 matching lines...) Expand all Loading... |
36 PostIdleTask(location, new IdleTaskRunner(std::move(idle_task))); | 36 PostIdleTask(location, new IdleTaskRunner(std::move(idle_task))); |
37 } | 37 } |
38 | 38 |
39 void WebScheduler::PostNonNestableIdleTask( | 39 void WebScheduler::PostNonNestableIdleTask( |
40 const WebTraceLocation& location, | 40 const WebTraceLocation& location, |
41 std::unique_ptr<IdleTask> idle_task) { | 41 std::unique_ptr<IdleTask> idle_task) { |
42 PostNonNestableIdleTask(location, new IdleTaskRunner(std::move(idle_task))); | 42 PostNonNestableIdleTask(location, new IdleTaskRunner(std::move(idle_task))); |
43 } | 43 } |
44 | 44 |
45 } // namespace blink | 45 } // namespace blink |
OLD | NEW |