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

Unified Diff: mojo/system/platform_channel_handle.h

Issue 103113002: Mojo: (POSIX) Pass channel handle to child. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 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/system/platform_channel.cc ('k') | mojo/system/platform_channel_handle.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/platform_channel_handle.h
diff --git a/mojo/system/platform_channel_handle.h b/mojo/system/platform_channel_handle.h
index abae838f12fcb4158c70d378fe62a0e0a5e1fcfd..3bb541b32c0e5091b9d6a1746fd519bce199b612 100644
--- a/mojo/system/platform_channel_handle.h
+++ b/mojo/system/platform_channel_handle.h
@@ -19,6 +19,8 @@ struct PlatformChannelHandle {
PlatformChannelHandle() : fd(-1) {}
explicit PlatformChannelHandle(int fd) : fd(fd) {}
+ void CloseIfNecessary();
+
bool is_valid() const { return fd != -1; }
int fd;
@@ -28,6 +30,8 @@ struct PlatformChannelHandle {
PlatformChannelHandle() : handle(INVALID_HANDLE_VALUE) {}
explicit PlatformChannelHandle(HANDLE handle) : handle(handle) {}
+ void CloseIfNecessary();
+
bool is_valid() const { return handle != INVALID_HANDLE_VALUE; }
HANDLE handle;
« no previous file with comments | « mojo/system/platform_channel.cc ('k') | mojo/system/platform_channel_handle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698