| 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 "config.h" | 5 #include "config.h" |
| 6 #include "public/platform/WebScheduler.h" | 6 #include "public/platform/WebScheduler.h" |
| 7 | 7 |
| 8 #include "platform/Task.h" | 8 #include "platform/Task.h" |
| 9 #include "public/platform/WebFrameHostScheduler.h" |
| 10 #include "public/platform/WebFrameScheduler.h" |
| 9 #include "public/platform/WebTraceLocation.h" | 11 #include "public/platform/WebTraceLocation.h" |
| 10 #include "wtf/Assertions.h" | 12 #include "wtf/Assertions.h" |
| 11 #include "wtf/OwnPtr.h" | 13 #include "wtf/OwnPtr.h" |
| 12 | 14 |
| 13 namespace blink { | 15 namespace blink { |
| 14 | 16 |
| 15 namespace { | 17 namespace { |
| 16 | 18 |
| 17 class IdleTaskRunner : public WebThread::IdleTask { | 19 class IdleTaskRunner : public WebThread::IdleTask { |
| 18 WTF_MAKE_NONCOPYABLE(IdleTaskRunner); | 20 WTF_MAKE_NONCOPYABLE(IdleTaskRunner); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 48 { | 50 { |
| 49 postNonNestableIdleTask(location, new IdleTaskRunner(idleTask)); | 51 postNonNestableIdleTask(location, new IdleTaskRunner(idleTask)); |
| 50 } | 52 } |
| 51 | 53 |
| 52 void WebScheduler::postIdleTaskAfterWakeup(const WebTraceLocation& location, Pas
sOwnPtr<IdleTask> idleTask) | 54 void WebScheduler::postIdleTaskAfterWakeup(const WebTraceLocation& location, Pas
sOwnPtr<IdleTask> idleTask) |
| 53 { | 55 { |
| 54 postIdleTaskAfterWakeup(location, new IdleTaskRunner(idleTask)); | 56 postIdleTaskAfterWakeup(location, new IdleTaskRunner(idleTask)); |
| 55 } | 57 } |
| 56 | 58 |
| 57 } // namespace blink | 59 } // namespace blink |
| OLD | NEW |