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

Unified Diff: mojo/runner/task_runners.h

Issue 1630823002: Move mojo/runner to mojo/shell/standalone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 11 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
« no previous file with comments | « mojo/runner/switches.cc ('k') | mojo/runner/task_runners.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/runner/task_runners.h
diff --git a/mojo/runner/task_runners.h b/mojo/runner/task_runners.h
deleted file mode 100644
index 5a51bb8d3ecfa1ad25b2ba37515a043ec5942bfa..0000000000000000000000000000000000000000
--- a/mojo/runner/task_runners.h
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright 2013 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 MOJO_RUNNER_TASK_RUNNERS_H_
-#define MOJO_RUNNER_TASK_RUNNERS_H_
-
-#include "base/macros.h"
-#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/threading/thread.h"
-
-namespace base {
-class SequencedWorkerPool;
-}
-
-namespace mojo {
-namespace runner {
-
-// A context object that contains the common task runners for the shell's main
-// process.
-class TaskRunners {
- public:
- explicit TaskRunners(
- const scoped_refptr<base::SingleThreadTaskRunner>& shell_runner);
- ~TaskRunners();
-
- base::SingleThreadTaskRunner* shell_runner() const {
- return shell_runner_.get();
- }
-
- base::SingleThreadTaskRunner* io_runner() const {
- return io_thread_->task_runner().get();
- }
-
- base::SequencedWorkerPool* blocking_pool() const {
- return blocking_pool_.get();
- }
-
- private:
- scoped_refptr<base::SingleThreadTaskRunner> shell_runner_;
- scoped_ptr<base::Thread> io_thread_;
-
- scoped_refptr<base::SequencedWorkerPool> blocking_pool_;
-
- DISALLOW_COPY_AND_ASSIGN(TaskRunners);
-};
-
-} // namespace runner
-} // namespace mojo
-
-#endif // MOJO_RUNNER_TASK_RUNNERS_H_
« no previous file with comments | « mojo/runner/switches.cc ('k') | mojo/runner/task_runners.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698