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

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

Issue 1685183004: Bootstrap Mojo IPC independent of Chrome IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: and fix posix Created 4 years, 10 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/system/node_controller.h
diff --git a/mojo/edk/system/node_controller.h b/mojo/edk/system/node_controller.h
index 0675e9743f7177bed66740f24dd0404217289cf0..605a12c590fb951a2b4548956b7fe01384516a0b 100644
--- a/mojo/edk/system/node_controller.h
+++ b/mojo/edk/system/node_controller.h
@@ -62,11 +62,13 @@ class NodeController : public ports::NodeDelegate,
// Connects this node to a child node. This node will initiate a handshake.
void ConnectToChild(base::ProcessHandle process_handle,
- ScopedPlatformHandle platform_handle);
+ ScopedPlatformHandle platform_handle,
+ const std::string& secret);
// Connects this node to a parent node. The parent node will initiate a
// handshake.
- void ConnectToParent(ScopedPlatformHandle platform_handle);
+ void ConnectToParent(ScopedPlatformHandle platform_handle,
+ const std::string& secret);
// Sets a port's observer. If |observer| is null the port's current observer
// is removed.
@@ -110,8 +112,10 @@ class NodeController : public ports::NodeDelegate,
using OutgoingMessageQueue = std::queue<Channel::MessagePtr>;
void ConnectToChildOnIOThread(base::ProcessHandle process_handle,
- ScopedPlatformHandle platform_handle);
- void ConnectToParentOnIOThread(ScopedPlatformHandle platform_handle);
+ ScopedPlatformHandle platform_handle,
+ const std::string& secret);
+ void ConnectToParentOnIOThread(ScopedPlatformHandle platform_handle,
+ const std::string& secret);
scoped_refptr<NodeChannel> GetPeerChannel(const ports::NodeName& name);
scoped_refptr<NodeChannel> GetParentChannel();

Powered by Google App Engine
This is Rietveld 408576698