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

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: Rebase 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/appcache/mock_appcache_policy.cc b/content/child/scheduler/null_idle_task_runner.cc
similarity index 26%
copy from content/browser/appcache/mock_appcache_policy.cc
copy to content/child/scheduler/null_idle_task_runner.cc
index 2fdfa9c9c6a7faa9eefdf3bbb98171f93222ff3d..08818ce5d430c6776b9dcc8c74811e09887f81db 100644
--- a/content/browser/appcache/mock_appcache_policy.cc
+++ b/content/child/scheduler/null_idle_task_runner.cc
@@ -2,27 +2,33 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/browser/appcache/mock_appcache_policy.h"
+#include "content/child/scheduler/null_idle_task_runner.h"
namespace content {
-MockAppCachePolicy::MockAppCachePolicy()
- : can_load_return_value_(true), can_create_return_value_(true) {
+NullIdleTaskRunner::NullIdleTaskRunner()
+ : SingleThreadIdleTaskRunner(nullptr,
+ nullptr,
+ base::Callback<void(base::TimeTicks*)>(),
+ "null.taskrunner") {
}
-MockAppCachePolicy::~MockAppCachePolicy() {
+NullIdleTaskRunner::~NullIdleTaskRunner() {
}
-bool MockAppCachePolicy::CanLoadAppCache(const GURL& manifest_url,
- const GURL& first_party) {
- requested_manifest_url_ = manifest_url;
- return can_load_return_value_;
+void NullIdleTaskRunner::PostIdleTask(
+ const tracked_objects::Location& from_here,
+ const IdleTask& idle_task) {
}
-bool MockAppCachePolicy::CanCreateAppCache(const GURL& manifest_url,
- const GURL& first_party) {
- requested_manifest_url_ = manifest_url;
- return can_create_return_value_;
+void NullIdleTaskRunner::PostNonNestableIdleTask(
+ const tracked_objects::Location& from_here,
+ const IdleTask& idle_task) {
+}
+
+void NullIdleTaskRunner::PostIdleTaskAfterWakeup(
+ const tracked_objects::Location& from_here,
+ const IdleTask& idle_task) {
}
} // namespace content
« no previous file with comments | « content/child/scheduler/null_idle_task_runner.h ('k') | content/child/scheduler/prioritizing_task_queue_selector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698