diff options
author | morrita <morrita@chromium.org> | 2015-02-25 12:11:27 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-25 20:12:22 +0000 |
commit | 0bd20bd071b18f094999263b377ee58173347567 (patch) | |
tree | 8b5009d1d83173fb1a26404ef85352369b3c363f /ipc/mojo/ipc_mojo_bootstrap.h | |
parent | 1ef880153850f6251bf5ace62cb60fa83ede8576 (diff) | |
download | chromium_src-0bd20bd071b18f094999263b377ee58173347567.zip chromium_src-0bd20bd071b18f094999263b377ee58173347567.tar.gz chromium_src-0bd20bd071b18f094999263b377ee58173347567.tar.bz2 |
ChannelMojo should use PID from the bootstrap Channel.
The original naive implementation ignores sandboxing limitation.
It should ask underlying channel to do it correctly.
TEST=IPCChannelMojoTest.VerifyGlobalPid
R=agl@chromium.org, viettrungluu@chromium.org
BUG=451553
Review URL: https://codereview.chromium.org/942933005
Cr-Commit-Position: refs/heads/master@{#318099}
Diffstat (limited to 'ipc/mojo/ipc_mojo_bootstrap.h')
-rw-r--r-- | ipc/mojo/ipc_mojo_bootstrap.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ipc/mojo/ipc_mojo_bootstrap.h b/ipc/mojo/ipc_mojo_bootstrap.h index eb1a987..1f71d2e 100644 --- a/ipc/mojo/ipc_mojo_bootstrap.h +++ b/ipc/mojo/ipc_mojo_bootstrap.h @@ -46,6 +46,9 @@ class IPC_MOJO_EXPORT MojoBootstrap : public Listener { // Start the handshake over the underlying platform channel. bool Connect(); + // GetSelfPID returns the PID associated with |channel_|. + base::ProcessId GetSelfPID() const; + // Each client should call this once the process handle becomes known. virtual void OnClientLaunched(base::ProcessHandle process) = 0; |