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

Unified Diff: content/child/scheduler/scheduler_message_loop_delegate.h

Issue 1058873010: Move blink scheduler implementation into a component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates 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 side-by-side diff with in-line comments
Download patch
Index: content/child/scheduler/scheduler_message_loop_delegate.h
diff --git a/content/child/scheduler/scheduler_message_loop_delegate.h b/content/child/scheduler/scheduler_message_loop_delegate.h
deleted file mode 100644
index 05e405b2a889358908c8ee731507a392421d0a76..0000000000000000000000000000000000000000
--- a/content/child/scheduler/scheduler_message_loop_delegate.h
+++ /dev/null
@@ -1,45 +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 CONTENT_CHILD_SCHEDULER_SCHEDULER_MESSAGE_LOOP_DELEGATE_H_
-#define CONTENT_CHILD_SCHEDULER_SCHEDULER_MESSAGE_LOOP_DELEGATE_H_
-
-#include "base/message_loop/message_loop.h"
-#include "content/child/scheduler/nestable_single_thread_task_runner.h"
-#include "content/common/content_export.h"
-
-namespace content {
-
-class CONTENT_EXPORT SchedulerMessageLoopDelegate
- : public NestableSingleThreadTaskRunner {
- public:
- // |message_loop| is not owned and must outlive the lifetime of this object.
- static scoped_refptr<SchedulerMessageLoopDelegate> Create(
- base::MessageLoop* message_loop);
-
- // NestableSingleThreadTaskRunner implementation
- bool PostDelayedTask(const tracked_objects::Location& from_here,
- const base::Closure& task,
- base::TimeDelta delay) override;
- bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here,
- const base::Closure& task,
- base::TimeDelta delay) override;
- bool RunsTasksOnCurrentThread() const override;
- bool IsNested() const override;
-
- protected:
- ~SchedulerMessageLoopDelegate() override;
-
- private:
- SchedulerMessageLoopDelegate(base::MessageLoop* message_loop);
-
- // Not owned.
- base::MessageLoop* message_loop_;
-
- DISALLOW_COPY_AND_ASSIGN(SchedulerMessageLoopDelegate);
-};
-
-} // namespace content
-
-#endif // CONTENT_CHILD_SCHEDULER_SCHEDULER_MESSAGE_LOOP_DELEGATE_H_
« no previous file with comments | « content/child/scheduler/scheduler_helper_unittest.cc ('k') | content/child/scheduler/scheduler_message_loop_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698