OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_MOJO_MOJO_SHELL_CLIENT_HOST_H_ |
| 6 #define CONTENT_BROWSER_MOJO_MOJO_SHELL_CLIENT_HOST_H_ |
| 7 |
| 8 #include "base/process/process_handle.h" |
| 9 |
| 10 namespace IPC { |
| 11 class Sender; |
| 12 } |
| 13 |
| 14 namespace content { |
| 15 |
| 16 // Creates a communication channel between the external Mojo shell and the |
| 17 // child. The server handle of this channel is shared with the external shell |
| 18 // via Mojo IPC and the client handle is shared with the child via Chrome IPC. |
| 19 // |child_process_id| is used to uniquify the child in the external shell's |
| 20 // instance map. |
| 21 void RegisterChildWithExternalShell(int child_process_id, |
| 22 base::ProcessHandle process_handle, |
| 23 IPC::Sender* sender); |
| 24 |
| 25 } // namespace content |
| 26 |
| 27 #endif // CONTENT_BROWSER_MOJO_MOJO_SHELL_CLIENT_HOST_H_ |
OLD | NEW |