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

Unified Diff: shell/task_runners.h

Issue 1523883002: EDK: Add a PlatformHandleWatcher argument to embedder::InitIPCSupport(). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years 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 | « shell/context.cc ('k') | shell/task_runners.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/task_runners.h
diff --git a/shell/task_runners.h b/shell/task_runners.h
index 5ed78b8b68c67262bcb02bad9e66506683e202f6..aed1f99485c731441869c490f87e0234c2c986c7 100644
--- a/shell/task_runners.h
+++ b/shell/task_runners.h
@@ -5,11 +5,14 @@
#ifndef SHELL_TASK_RUNNERS_H_
#define SHELL_TASK_RUNNERS_H_
+#include <memory>
+
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/single_thread_task_runner.h"
#include "base/threading/thread.h"
+#include "mojo/edk/platform/platform_handle_watcher.h"
#include "mojo/edk/platform/task_runner.h"
#include "mojo/edk/util/ref_ptr.h"
@@ -35,6 +38,10 @@ class TaskRunners {
return io_runner_;
}
+ mojo::platform::PlatformHandleWatcher* io_watcher() const {
+ return io_watcher_.get();
+ }
+
base::SequencedWorkerPool* blocking_pool() const {
return blocking_pool_.get();
}
@@ -43,6 +50,7 @@ class TaskRunners {
mojo::util::RefPtr<mojo::platform::TaskRunner> shell_runner_;
scoped_ptr<base::Thread> io_thread_;
mojo::util::RefPtr<mojo::platform::TaskRunner> io_runner_;
+ std::unique_ptr<mojo::platform::PlatformHandleWatcher> io_watcher_;
scoped_refptr<base::SequencedWorkerPool> blocking_pool_;
« no previous file with comments | « shell/context.cc ('k') | shell/task_runners.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698