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

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

Issue 1058873010: Move blink scheduler implementation into a component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/nestable_task_runner_for_test.h" 5 #include "components/scheduler/child/nestable_task_runner_for_test.h"
6 6
7 namespace content { 7 namespace scheduler {
8 8
9 // static 9 // static
10 scoped_refptr<NestableTaskRunnerForTest> NestableTaskRunnerForTest::Create( 10 scoped_refptr<NestableTaskRunnerForTest> NestableTaskRunnerForTest::Create(
11 scoped_refptr<base::SingleThreadTaskRunner> task_runner) { 11 scoped_refptr<base::SingleThreadTaskRunner> task_runner) {
12 return make_scoped_refptr(new NestableTaskRunnerForTest(task_runner)); 12 return make_scoped_refptr(new NestableTaskRunnerForTest(task_runner));
13 } 13 }
14 14
15 NestableTaskRunnerForTest::NestableTaskRunnerForTest( 15 NestableTaskRunnerForTest::NestableTaskRunnerForTest(
16 scoped_refptr<base::SingleThreadTaskRunner> task_runner) 16 scoped_refptr<base::SingleThreadTaskRunner> task_runner)
17 : task_runner_(task_runner), is_nested_(false) { 17 : task_runner_(task_runner), is_nested_(false) {
(...skipping 21 matching lines...) Expand all
39 } 39 }
40 40
41 bool NestableTaskRunnerForTest::IsNested() const { 41 bool NestableTaskRunnerForTest::IsNested() const {
42 return is_nested_; 42 return is_nested_;
43 } 43 }
44 44
45 void NestableTaskRunnerForTest::SetNested(bool is_nested) { 45 void NestableTaskRunnerForTest::SetNested(bool is_nested) {
46 is_nested_ = is_nested; 46 is_nested_ = is_nested;
47 } 47 }
48 48
49 } // namespace content 49 } // namespace scheduler
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698