OLD | NEW |
| (Empty) |
1 // Copyright 2016 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 MOJO_SHELL_RUNNER_COMMON_CLIENT_UTIL_H_ | |
6 #define MOJO_SHELL_RUNNER_COMMON_CLIENT_UTIL_H_ | |
7 | |
8 #include "mojo/shell/public/interfaces/shell_client.mojom.h" | |
9 | |
10 namespace base { | |
11 class CommandLine; | |
12 } | |
13 | |
14 namespace mojo { | |
15 namespace shell { | |
16 | |
17 // Creates a new ShellClient pipe and returns one end of it. The other end is | |
18 // passed via a token in |command_line|. A child of the calling process may | |
19 // extract a ShellClientRequest from this by calling | |
20 // GetShellClientRequestFromCommandLine(). | |
21 mojom::ShellClientPtr PassShellClientRequestOnCommandLine( | |
22 base::CommandLine* command_line); | |
23 | |
24 // Extracts a ShellClientRequest from the command line of the current process. | |
25 // The parent of this process should have passed a request using | |
26 // PassShellClientRequestOnCommandLine(). | |
27 mojom::ShellClientRequest GetShellClientRequestFromCommandLine(); | |
28 | |
29 } // namespace shell | |
30 } // namespace mojo | |
31 | |
32 #endif // MOJO_SHELL_RUNNER_COMMON_CLIENT_UTIL_H_ | |
OLD | NEW |