diff options
Diffstat (limited to 'content/browser/mojo/mojo_shell_client_host.h')
-rw-r--r-- | content/browser/mojo/mojo_shell_client_host.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/content/browser/mojo/mojo_shell_client_host.h b/content/browser/mojo/mojo_shell_client_host.h new file mode 100644 index 0000000..3f2b4da --- /dev/null +++ b/content/browser/mojo/mojo_shell_client_host.h @@ -0,0 +1,27 @@ +// Copyright 2015 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CONTENT_BROWSER_MOJO_MOJO_SHELL_CLIENT_HOST_H_ +#define CONTENT_BROWSER_MOJO_MOJO_SHELL_CLIENT_HOST_H_ + +#include "base/process/process_handle.h" + +namespace IPC { +class Sender; +} + +namespace content { + +// Creates a communication channel between the external Mojo shell and the +// child. The server handle of this channel is shared with the external shell +// via Mojo IPC and the client handle is shared with the child via Chrome IPC. +// |child_process_id| is used to uniquify the child in the external shell's +// instance map. +void RegisterChildWithExternalShell(int child_process_id, + base::ProcessHandle process_handle, + IPC::Sender* sender); + +} // namespace content + +#endif // CONTENT_BROWSER_MOJO_MOJO_SHELL_CLIENT_HOST_H_ |