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

Unified Diff: mojo/edk/embedder/platform_channel_utils_posix.h

Issue 2282413004: Support creating mojo peer connections from named pipes. (Closed)
Patch Set: Created 4 years, 4 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: mojo/edk/embedder/platform_channel_utils_posix.h
diff --git a/mojo/edk/embedder/platform_channel_utils_posix.h b/mojo/edk/embedder/platform_channel_utils_posix.h
index 8b24bd028f8c872880efac80d2cfbe05ce533cbd..89a32e4fdf6fa2b49f3f2a19e9fb253fda9dc0e9 100644
--- a/mojo/edk/embedder/platform_channel_utils_posix.h
+++ b/mojo/edk/embedder/platform_channel_utils_posix.h
@@ -18,6 +18,7 @@ struct iovec; // Declared in <sys/uio.h>.
namespace mojo {
namespace edk {
+class ScopedPlatformHandle;
// The maximum number of handles that can be sent "at once" using
// |PlatformChannelSendmsgWithHandles()|. This must be less than the Linux
@@ -70,6 +71,13 @@ PlatformChannelRecvmsg(PlatformHandle h,
std::deque<PlatformHandle>* platform_handles,
bool block = false);
+// Returns false if |server_handle| encounters an unrecoverable error.
+// Returns true if it's valid to keep listening on |server_handle|. In this
+// case, it's possible that a connection wasn't successfully established; then,
+// |connection_handle| will be invalid.
+bool ServerAcceptConnection(PlatformHandle server_handle,
+ ScopedPlatformHandle* connection_handle);
+
} // namespace edk
} // namespace mojo
« no previous file with comments | « mojo/edk/embedder/named_platform_handle_utils_win.cc ('k') | mojo/edk/embedder/platform_channel_utils_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698