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

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

Issue 1659213002: Move PlatformChannelPair to //mojo/edk/platform and rename it PlatformPipe. (Closed) Base URL: https://github.com/domokit/mojo.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/edk/embedder/platform_channel_pair_unittest.cc ('k') | mojo/edk/platform/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/embedder/platform_channel_utils.h
diff --git a/mojo/edk/embedder/platform_channel_utils.h b/mojo/edk/embedder/platform_channel_utils.h
index 9787fdc771168b2c6b9eab190b71e3d9eafbe558..23f1e51fc70c9174297ceb73ede3ce22cccdc535 100644
--- a/mojo/edk/embedder/platform_channel_utils.h
+++ b/mojo/edk/embedder/platform_channel_utils.h
@@ -24,10 +24,10 @@ namespace embedder {
// |IPC::MessageAttachmentSet::kMaxDescriptorsPerMessage|.
const size_t kPlatformChannelMaxNumHandles = 128;
-// Use these to write to a socket created using |PlatformChannelPair| (or
-// equivalent). These are like |write()| and |writev()|, but handle |EINTR| and
-// never raise |SIGPIPE|. (Note: On Mac, the suppression of |SIGPIPE| is set up
-// by |PlatformChannelPair|.)
+// Use these to write to a socket created using |PlatformPipe| (or equivalent).
+// These are like |write()| and |writev()|, but handle |EINTR| and never raise
+// |SIGPIPE|. (Note: On Mac, the suppression of |SIGPIPE| is set up by
+// |PlatformPipe|.)
ssize_t PlatformChannelWrite(platform::PlatformHandle h,
const void* bytes,
size_t num_bytes);
@@ -37,12 +37,11 @@ ssize_t PlatformChannelWritev(platform::PlatformHandle h,
// Writes data, and the given set of |PlatformHandle|s (i.e., file descriptors)
// over the Unix domain socket given by |h| (e.g., created using
-// |PlatformChannelPair()|). All the handles must be valid, and there must be at
-// least one and at most |kPlatformChannelMaxNumHandles| handles. The return
-// value is as for |sendmsg()|, namely -1 on failure and otherwise the number of
-// bytes of data sent on success (note that this may not be all the data
-// specified by |iov|). (The handles are not closed, regardless of success or
-// failure.)
+// |PlatformPipe()|). All the handles must be valid, and there must be at least
+// one and at most |kPlatformChannelMaxNumHandles| handles. The return value is
+// as for |sendmsg()|, namely -1 on failure and otherwise the number of bytes of
+// data sent on success (note that this may not be all the data specified by
+// |iov|). (The handles are not closed, regardless of success or failure.)
ssize_t PlatformChannelSendmsgWithHandles(
platform::PlatformHandle h,
struct iovec* iov,
« no previous file with comments | « mojo/edk/embedder/platform_channel_pair_unittest.cc ('k') | mojo/edk/platform/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698