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/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
11 #include "base/process/process_handle.h" | 11 #include "base/process/process_handle.h" |
12 #include "mojo/shell/public/interfaces/shell.mojom.h" | 12 #include "mojo/shell/public/interfaces/shell.mojom.h" |
13 #include "third_party/mojo/src/mojo/edk/embedder/scoped_platform_handle.h" | |
14 | 13 |
15 namespace content { | 14 namespace content { |
16 | 15 |
17 class RenderProcessHost; | 16 class RenderProcessHost; |
18 | 17 |
19 // Creates a communication channel between the external Mojo shell and the | 18 // Creates a communication channel between the external Mojo shell and the |
20 // 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 |
21 // 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 |
22 // external shell's instance map. | 21 // external shell's instance map. |
23 void RegisterChildWithExternalShell( | 22 void RegisterChildWithExternalShell( |
(...skipping 13 matching lines...) Expand all Loading... |
37 // Constructs a Capability Filter for the renderer's application instance in the | 36 // Constructs a Capability Filter for the renderer's application instance in the |
38 // external shell. This contains the restrictions imposed on what applications | 37 // external shell. This contains the restrictions imposed on what applications |
39 // and interfaces the renderer can see. The implementation lives in | 38 // and interfaces the renderer can see. The implementation lives in |
40 // renderer_capability_filter.cc so that it can be subject to specific security | 39 // renderer_capability_filter.cc so that it can be subject to specific security |
41 // review. | 40 // review. |
42 mojo::shell::mojom::CapabilityFilterPtr CreateCapabilityFilterForRenderer(); | 41 mojo::shell::mojom::CapabilityFilterPtr CreateCapabilityFilterForRenderer(); |
43 | 42 |
44 } // namespace content | 43 } // namespace content |
45 | 44 |
46 #endif // CONTENT_BROWSER_MOJO_MOJO_SHELL_CLIENT_HOST_H_ | 45 #endif // CONTENT_BROWSER_MOJO_MOJO_SHELL_CLIENT_HOST_H_ |
OLD | NEW |