OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_MOJO_MOJO_SHELL_CLIENT_HOST_H_ | 5 #ifndef CONTENT_BROWSER_MOJO_MOJO_SHELL_CLIENT_HOST_H_ |
6 #define CONTENT_BROWSER_MOJO_MOJO_SHELL_CLIENT_HOST_H_ | 6 #define CONTENT_BROWSER_MOJO_MOJO_SHELL_CLIENT_HOST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/process/process_handle.h" | 10 #include "base/process/process_handle.h" |
11 #include "mojo/application/public/interfaces/shell.mojom.h" | 11 #include "mojo/shell/public/interfaces/shell.mojom.h" |
12 #include "third_party/mojo/src/mojo/edk/embedder/scoped_platform_handle.h" | 12 #include "third_party/mojo/src/mojo/edk/embedder/scoped_platform_handle.h" |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 | 15 |
16 class RenderProcessHost; | 16 class RenderProcessHost; |
17 | 17 |
18 // Creates a communication channel between the external Mojo shell and the | 18 // Creates a communication channel between the external Mojo shell and the |
19 // child. The server handle of this channel is shared with the external shell | 19 // child. The server handle of this channel is shared with the external shell |
20 // via Mojo IPC. |child_process_id| is used to uniquify the child in the | 20 // via Mojo IPC. |child_process_id| is used to uniquify the child in the |
21 // external shell's instance map. | 21 // external shell's instance map. |
(...skipping 17 matching lines...) Expand all Loading... |
39 // review. | 39 // review. |
40 mojo::CapabilityFilterPtr CreateCapabilityFilterForRenderer(); | 40 mojo::CapabilityFilterPtr CreateCapabilityFilterForRenderer(); |
41 | 41 |
42 // Used for the broker in the new EDK. | 42 // Used for the broker in the new EDK. |
43 mojo::embedder::ScopedPlatformHandle RegisterProcessWithBroker( | 43 mojo::embedder::ScopedPlatformHandle RegisterProcessWithBroker( |
44 base::ProcessId pid); | 44 base::ProcessId pid); |
45 | 45 |
46 } // namespace content | 46 } // namespace content |
47 | 47 |
48 #endif // CONTENT_BROWSER_MOJO_MOJO_SHELL_CLIENT_HOST_H_ | 48 #endif // CONTENT_BROWSER_MOJO_MOJO_SHELL_CLIENT_HOST_H_ |
OLD | NEW |