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" |
(...skipping 16 matching lines...) Expand all Loading... |
27 std::string RegisterChildWithExternalShell( | 27 std::string RegisterChildWithExternalShell( |
28 int child_process_id, | 28 int child_process_id, |
29 int instance_id, | 29 int instance_id, |
30 RenderProcessHost* render_process_host); | 30 RenderProcessHost* render_process_host); |
31 | 31 |
32 // Returns the Identity associated with an instance corresponding to the | 32 // Returns the Identity associated with an instance corresponding to the |
33 // renderer process in shell. This Identity can be passed to Connect() to open a | 33 // renderer process in shell. This Identity can be passed to Connect() to open a |
34 // new connection to this renderer. | 34 // new connection to this renderer. |
35 mojo::Identity GetMojoIdentity(RenderProcessHost* render_process_host); | 35 mojo::Identity GetMojoIdentity(RenderProcessHost* render_process_host); |
36 | 36 |
37 // Constructs a Capability Filter for the renderer's application instance in the | |
38 // external shell. This contains the restrictions imposed on what applications | |
39 // and interfaces the renderer can see. The implementation lives in | |
40 // renderer_capability_filter.cc so that it can be subject to specific security | |
41 // review. | |
42 mojo::shell::mojom::CapabilityFilterPtr CreateCapabilityFilterForRenderer(); | |
43 | |
44 } // namespace content | 37 } // namespace content |
45 | 38 |
46 #endif // CONTENT_BROWSER_MOJO_MOJO_SHELL_CLIENT_HOST_H_ | 39 #endif // CONTENT_BROWSER_MOJO_MOJO_SHELL_CLIENT_HOST_H_ |
OLD | NEW |