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

Unified 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, 9 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 side-by-side diff with in-line comments
Download patch
Index: content/child/scheduler/null_idle_task_runner.cc
diff --git a/content/browser/indexed_db/mock_indexed_db_factory.cc b/content/child/scheduler/null_idle_task_runner.cc
similarity index 31%
copy from content/browser/indexed_db/mock_indexed_db_factory.cc
copy to content/child/scheduler/null_idle_task_runner.cc
index 1c95226f6e47144e29f3538b2d845ab2271f9fbb..41c29eec268b7b4988eb262327a86cc8c6a33183 100644
--- a/content/browser/indexed_db/mock_indexed_db_factory.cc
+++ b/content/child/scheduler/null_idle_task_runner.cc
@@ -2,19 +2,23 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/browser/indexed_db/mock_indexed_db_factory.h"
+#include "content/child/scheduler/null_idle_task_runner.h"
namespace content {
-MockIndexedDBFactory::MockIndexedDBFactory() {
+NullIdleTaskRunner::NullIdleTaskRunner()
+ : SingleThreadIdleTaskRunner(nullptr,
+ nullptr,
+ base::Callback<void(base::TimeTicks*)>(),
+ "null.taskrunner") {
}
-MockIndexedDBFactory::~MockIndexedDBFactory() {
+NullIdleTaskRunner::~NullIdleTaskRunner() {
}
-IndexedDBFactory::OriginDBs MockIndexedDBFactory::GetOpenDatabasesForOrigin(
- const GURL& origin_url) const {
- return OriginDBs();
+void NullIdleTaskRunner::PostIdleTask(
+ const tracked_objects::Location& from_here,
+ const IdleTask& idle_task) {
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698