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