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

Unified Diff: mojo/edk/system/ipc_support.h

Issue 1525883002: EDK: Add PlatformHandleWatcher to IPCSupport class. (Closed) Base URL: https://github.com/domokit/mojo.git@embedder_watcher
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 | « mojo/edk/embedder/embedder.cc ('k') | mojo/edk/system/ipc_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/ipc_support.h
diff --git a/mojo/edk/system/ipc_support.h b/mojo/edk/system/ipc_support.h
index ccf535f06034c389edbdc7bd759d2f182af2b04c..46ea1cd165b62e5f15b034226182dd785517fea4 100644
--- a/mojo/edk/system/ipc_support.h
+++ b/mojo/edk/system/ipc_support.h
@@ -26,6 +26,10 @@ class PlatformSupport;
class ProcessDelegate;
}
+namespace platform {
+class PlatformHandleWatcher;
+}
+
namespace system {
class ChannelManager;
@@ -66,7 +70,8 @@ class IPCSupport {
embedder::ProcessType process_type,
util::RefPtr<platform::TaskRunner>&& delegate_thread_task_runner,
embedder::ProcessDelegate* process_delegate,
- util::RefPtr<platform::TaskRunner>&& io_thread_task_runner,
+ util::RefPtr<platform::TaskRunner>&& io_task_runner,
+ platform::PlatformHandleWatcher* io_watcher,
platform::ScopedPlatformHandle platform_handle);
// Note: This object must be shut down before destruction (see
// |ShutdownOnIOThread()|).
@@ -129,8 +134,8 @@ class IPCSupport {
const {
return delegate_thread_task_runner_;
}
- const util::RefPtr<platform::TaskRunner>& io_thread_task_runner() const {
- return io_thread_task_runner_;
+ const util::RefPtr<platform::TaskRunner>& io_task_runner() const {
+ return io_task_runner_;
}
// TODO(vtl): The things that use the following should probably be moved into
// this class.
@@ -168,7 +173,8 @@ class IPCSupport {
embedder::ProcessType process_type_;
util::RefPtr<platform::TaskRunner> delegate_thread_task_runner_;
embedder::ProcessDelegate* process_delegate_;
- util::RefPtr<platform::TaskRunner> io_thread_task_runner_;
+ util::RefPtr<platform::TaskRunner> io_task_runner_;
+ platform::PlatformHandleWatcher* io_watcher_;
std::unique_ptr<ConnectionManager> connection_manager_;
std::unique_ptr<ChannelManager> channel_manager_;
« no previous file with comments | « mojo/edk/embedder/embedder.cc ('k') | mojo/edk/system/ipc_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698