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

Side by Side Diff: components/scheduler/child/scheduler_message_loop_delegate.cc

Issue 1058873010: Move blink scheduler implementation into a component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 5 years, 8 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 "content/child/scheduler/scheduler_message_loop_delegate.h" 5 #include "components/scheduler/child/scheduler_message_loop_delegate.h"
6 6
7 namespace content { 7 namespace scheduler {
8 8
9 // static 9 // static
10 scoped_refptr<SchedulerMessageLoopDelegate> 10 scoped_refptr<SchedulerMessageLoopDelegate>
11 SchedulerMessageLoopDelegate::Create(base::MessageLoop* message_loop) { 11 SchedulerMessageLoopDelegate::Create(base::MessageLoop* message_loop) {
12 return make_scoped_refptr(new SchedulerMessageLoopDelegate(message_loop)); 12 return make_scoped_refptr(new SchedulerMessageLoopDelegate(message_loop));
13 } 13 }
14 14
15 SchedulerMessageLoopDelegate::SchedulerMessageLoopDelegate( 15 SchedulerMessageLoopDelegate::SchedulerMessageLoopDelegate(
16 base::MessageLoop* message_loop) 16 base::MessageLoop* message_loop)
17 : message_loop_(message_loop) { 17 : message_loop_(message_loop) {
(...skipping 18 matching lines...) Expand all
36 } 36 }
37 37
38 bool SchedulerMessageLoopDelegate::RunsTasksOnCurrentThread() const { 38 bool SchedulerMessageLoopDelegate::RunsTasksOnCurrentThread() const {
39 return message_loop_->task_runner()->RunsTasksOnCurrentThread(); 39 return message_loop_->task_runner()->RunsTasksOnCurrentThread();
40 } 40 }
41 41
42 bool SchedulerMessageLoopDelegate::IsNested() const { 42 bool SchedulerMessageLoopDelegate::IsNested() const {
43 return message_loop_->IsNested(); 43 return message_loop_->IsNested();
44 } 44 }
45 45
46 } // namespace content 46 } // namespace scheduler
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698