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

Unified Diff: ipc/ipc_channel.h

Issue 139993009: [WIP] Yet another demo for BMM NaCl ppapi connection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
Index: ipc/ipc_channel.h
diff --git a/ipc/ipc_channel.h b/ipc/ipc_channel.h
index 7e09a806f7a17bc111cce025081c253e7f37ebb3..74a48e5f91ab01b9a98dd6d639628bf16393e157 100644
--- a/ipc/ipc_channel.h
+++ b/ipc/ipc_channel.h
@@ -202,6 +202,13 @@ class IPC_EXPORT Channel : public Sender {
// message from client to server we need to send the PID from the global
// PID namespace.
static void SetGlobalPid(int pid);
+
+ // On POSIX an IPC::Channel wraps a socketpair() with set some attributes
Mark Seaborn 2014/02/07 22:53:43 "with some attributes set" However, since this is
+ // (such as non-blocking mode). This returns raw FD #s for the pair, which
+ // allows us to pass file descriptors between processes (such as between
+ // a plugin process and the browser process) before actual initialization
+ // of IPC server Channel instance.
+ static bool SocketPair(int* fd1, int* fd2);
#endif
protected:

Powered by Google App Engine
This is Rietveld 408576698