Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: third_party/WebKit/Source/core/dom/ScriptedIdleTaskController.cpp

Issue 2843503002: scheduler: Move WebFrameScheduler and WebScheduler into Blink (Closed)
Patch Set: Build fix Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/InspectorTraceEvents.h" 10 #include "core/inspector/InspectorTraceEvents.h"
11 #include "core/probe/CoreProbes.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 "platform/scheduler/child/web_scheduler.h"
14 #include "platform/wtf/CurrentTime.h" 15 #include "platform/wtf/CurrentTime.h"
15 #include "platform/wtf/Functional.h" 16 #include "platform/wtf/Functional.h"
16 #include "platform/wtf/RefCounted.h" 17 #include "platform/wtf/RefCounted.h"
17 #include "public/platform/Platform.h" 18 #include "public/platform/Platform.h"
18 #include "public/platform/WebScheduler.h"
19 #include "public/platform/WebTraceLocation.h" 19 #include "public/platform/WebTraceLocation.h"
20 20
21 namespace blink { 21 namespace blink {
22 22
23 namespace internal { 23 namespace internal {
24 24
25 class IdleRequestCallbackWrapper 25 class IdleRequestCallbackWrapper
26 : public RefCounted<IdleRequestCallbackWrapper> { 26 : public RefCounted<IdleRequestCallbackWrapper> {
27 public: 27 public:
28 static PassRefPtr<IdleRequestCallbackWrapper> Create( 28 static PassRefPtr<IdleRequestCallbackWrapper> Create(
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 RefPtr<internal::IdleRequestCallbackWrapper> callback_wrapper = 217 RefPtr<internal::IdleRequestCallbackWrapper> callback_wrapper =
218 internal::IdleRequestCallbackWrapper::Create(callback.key, this); 218 internal::IdleRequestCallbackWrapper::Create(callback.key, this);
219 scheduler_->PostIdleTask( 219 scheduler_->PostIdleTask(
220 BLINK_FROM_HERE, 220 BLINK_FROM_HERE,
221 WTF::Bind(&internal::IdleRequestCallbackWrapper::IdleTaskFired, 221 WTF::Bind(&internal::IdleRequestCallbackWrapper::IdleTaskFired,
222 callback_wrapper)); 222 callback_wrapper));
223 } 223 }
224 } 224 }
225 225
226 } // namespace blink 226 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ScriptRunnerTest.cpp ('k') | third_party/WebKit/Source/core/frame/LocalFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698