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

Unified Diff: components/scheduler/child/scheduler_task_runner_delegate.h

Issue 1424053002: Adds a flag to support "Virtual Time" to the blink scheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 1 month 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: components/scheduler/child/scheduler_task_runner_delegate.h
diff --git a/components/scheduler/child/scheduler_task_runner_delegate.h b/components/scheduler/child/scheduler_task_runner_delegate.h
deleted file mode 100644
index dd0fc146deb0b228edec910c084dd0b4af40d3ed..0000000000000000000000000000000000000000
--- a/components/scheduler/child/scheduler_task_runner_delegate.h
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_SCHEDULER_CHILD_SCHEDULER_TASK_RUNNER_DELEGATE_H_
-#define COMPONENTS_SCHEDULER_CHILD_SCHEDULER_TASK_RUNNER_DELEGATE_H_
-
-#include "base/message_loop/message_loop.h"
-#include "components/scheduler/base/nestable_single_thread_task_runner.h"
-#include "components/scheduler/scheduler_export.h"
-
-namespace scheduler {
-
-class SCHEDULER_EXPORT SchedulerTaskRunnerDelegate
- : public NestableSingleThreadTaskRunner {
- public:
- SchedulerTaskRunnerDelegate() {}
-
- // If the underlying task runner supports the concept of a default task
- // runner, the delegate should implement this function to redirect that task
- // runner to the scheduler.
- virtual void SetDefaultTaskRunner(
- scoped_refptr<base::SingleThreadTaskRunner> task_runner) = 0;
-
- // Similarly this method can be used to restore the original task runner when
- // the scheduler no longer wants to intercept tasks.
- virtual void RestoreDefaultTaskRunner() = 0;
-
- protected:
- ~SchedulerTaskRunnerDelegate() override {}
-
- DISALLOW_COPY_AND_ASSIGN(SchedulerTaskRunnerDelegate);
-};
-
-} // namespace scheduler
-
-#endif // COMPONENTS_SCHEDULER_CHILD_SCHEDULER_TASK_RUNNER_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698