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

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

Issue 1366883002: [Reland] Post loading tasks on the appropriate WebFrameScheduler's queue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased 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
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"
9 #include "public/platform/WebFrameScheduler.h" 10 #include "public/platform/WebFrameScheduler.h"
10 #include "public/platform/WebFrameHostScheduler.h"
11 #include "public/platform/WebTraceLocation.h" 11 #include "public/platform/WebTraceLocation.h"
12 #include "wtf/Assertions.h" 12 #include "wtf/Assertions.h"
13 #include "wtf/OwnPtr.h" 13 #include "wtf/OwnPtr.h"
14 14
15 namespace blink { 15 namespace blink {
16 16
17 namespace { 17 namespace {
18 18
19 class IdleTaskRunner : public WebThread::IdleTask { 19 class IdleTaskRunner : public WebThread::IdleTask {
20 WTF_MAKE_NONCOPYABLE(IdleTaskRunner); 20 WTF_MAKE_NONCOPYABLE(IdleTaskRunner);
(...skipping 29 matching lines...) Expand all
50 { 50 {
51 postNonNestableIdleTask(location, new IdleTaskRunner(idleTask)); 51 postNonNestableIdleTask(location, new IdleTaskRunner(idleTask));
52 } 52 }
53 53
54 void WebScheduler::postIdleTaskAfterWakeup(const WebTraceLocation& location, Pas sOwnPtr<IdleTask> idleTask) 54 void WebScheduler::postIdleTaskAfterWakeup(const WebTraceLocation& location, Pas sOwnPtr<IdleTask> idleTask)
55 { 55 {
56 postIdleTaskAfterWakeup(location, new IdleTaskRunner(idleTask)); 56 postIdleTaskAfterWakeup(location, new IdleTaskRunner(idleTask));
57 } 57 }
58 58
59 } // namespace blink 59 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698