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

Unified Diff: sandbox/mac/launchd_interception_server.h

Issue 347783002: Alter the design of the bootstrap sandbox to only take over the bootstrap port of children when nec… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: bootstrap_check_in Created 6 years, 6 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: sandbox/mac/launchd_interception_server.h
diff --git a/sandbox/mac/launchd_interception_server.h b/sandbox/mac/launchd_interception_server.h
index 2e80fecaf5e40f8f65810bf0eb17d076c42722ff..ec25be16133e478f9c45e3f7ec171f3f5173334f 100644
--- a/sandbox/mac/launchd_interception_server.h
+++ b/sandbox/mac/launchd_interception_server.h
@@ -28,8 +28,10 @@ class LaunchdInterceptionServer : public MessageDemuxer {
explicit LaunchdInterceptionServer(const BootstrapSandbox* sandbox);
virtual ~LaunchdInterceptionServer();
- // Initializes the class and starts running the message server.
- bool Initialize();
+ // Initializes the class and starts running the message server. If the
+ // |server_receive_right| is non-NULL, this class will take ownership of
+ // the receive right and intercept messages sent to that port.
+ bool Initialize(mach_port_t server_receive_right);
// MessageDemuxer:
virtual void DemuxMessage(mach_msg_header_t* request,

Powered by Google App Engine
This is Rietveld 408576698