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