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

Side by Side Diff: third_party/WebKit/Source/platform/WebScheduler.cpp

Issue 1340343003: scheduler: Implement WebFrameScheduler and WebPageScheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased + fixed gn build. Created 5 years, 2 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
« no previous file with comments | « third_party/WebKit/Source/platform/Timer.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/Timer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698