| OLD | NEW |
| 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 |
| OLD | NEW |