| 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 "core/dom/ScriptedIdleTaskController.h" | 5 #include "core/dom/ScriptedIdleTaskController.h" |
| 6 | 6 |
| 7 #include "core/dom/ExecutionContext.h" | 7 #include "core/dom/ExecutionContext.h" |
| 8 #include "core/dom/IdleRequestCallback.h" | 8 #include "core/dom/IdleRequestCallback.h" |
| 9 #include "core/dom/IdleRequestOptions.h" | 9 #include "core/dom/IdleRequestOptions.h" |
| 10 #include "core/inspector/InspectorInstrumentation.h" | |
| 11 #include "core/inspector/InspectorTraceEvents.h" | 10 #include "core/inspector/InspectorTraceEvents.h" |
| 11 #include "core/probe/CoreProbes.h" |
| 12 #include "platform/Histogram.h" | 12 #include "platform/Histogram.h" |
| 13 #include "platform/instrumentation/tracing/TraceEvent.h" | 13 #include "platform/instrumentation/tracing/TraceEvent.h" |
| 14 #include "public/platform/Platform.h" | 14 #include "public/platform/Platform.h" |
| 15 #include "public/platform/WebScheduler.h" | 15 #include "public/platform/WebScheduler.h" |
| 16 #include "public/platform/WebTraceLocation.h" | 16 #include "public/platform/WebTraceLocation.h" |
| 17 #include "wtf/CurrentTime.h" | 17 #include "wtf/CurrentTime.h" |
| 18 #include "wtf/Functional.h" | 18 #include "wtf/Functional.h" |
| 19 #include "wtf/RefCounted.h" | 19 #include "wtf/RefCounted.h" |
| 20 | 20 |
| 21 namespace blink { | 21 namespace blink { |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 RefPtr<internal::IdleRequestCallbackWrapper> callbackWrapper = | 217 RefPtr<internal::IdleRequestCallbackWrapper> callbackWrapper = |
| 218 internal::IdleRequestCallbackWrapper::create(callback.key, this); | 218 internal::IdleRequestCallbackWrapper::create(callback.key, this); |
| 219 m_scheduler->postIdleTask( | 219 m_scheduler->postIdleTask( |
| 220 BLINK_FROM_HERE, | 220 BLINK_FROM_HERE, |
| 221 WTF::bind(&internal::IdleRequestCallbackWrapper::idleTaskFired, | 221 WTF::bind(&internal::IdleRequestCallbackWrapper::idleTaskFired, |
| 222 callbackWrapper)); | 222 callbackWrapper)); |
| 223 } | 223 } |
| 224 } | 224 } |
| 225 | 225 |
| 226 } // namespace blink | 226 } // namespace blink |
| OLD | NEW |