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

Side by Side Diff: content/child/scheduler/null_idle_task_runner.cc

Issue 1025323003: Introduce a SchedulerHelper in content/child/scheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ross's suggestions 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/browser/indexed_db/mock_indexed_db_factory.h" 5 #include "content/child/scheduler/null_idle_task_runner.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 MockIndexedDBFactory::MockIndexedDBFactory() { 9 NullIdleTaskRunner::NullIdleTaskRunner()
10 : SingleThreadIdleTaskRunner(nullptr,
11 nullptr,
12 base::Callback<void(base::TimeTicks*)>(),
13 "null.taskrunner") {
10 } 14 }
11 15
12 MockIndexedDBFactory::~MockIndexedDBFactory() { 16 NullIdleTaskRunner::~NullIdleTaskRunner() {
13 } 17 }
14 18
15 IndexedDBFactory::OriginDBs MockIndexedDBFactory::GetOpenDatabasesForOrigin( 19 void NullIdleTaskRunner::PostIdleTask(
16 const GURL& origin_url) const { 20 const tracked_objects::Location& from_here,
17 return OriginDBs(); 21 const IdleTask& idle_task) {
18 } 22 }
19 23
20 } // namespace content 24 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698