Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(491)

Side by Side Diff: services/shell/runner/common/client_util.h

Issue 1882423004: Move shell service to toplevel shell namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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 SERVICES_SHELL_RUNNER_COMMON_CLIENT_UTIL_H_ 5 #ifndef SERVICES_SHELL_RUNNER_COMMON_CLIENT_UTIL_H_
6 #define SERVICES_SHELL_RUNNER_COMMON_CLIENT_UTIL_H_ 6 #define SERVICES_SHELL_RUNNER_COMMON_CLIENT_UTIL_H_
7 7
8 #include "services/shell/public/interfaces/shell_client.mojom.h" 8 #include "services/shell/public/interfaces/shell_client.mojom.h"
9 9
10 namespace base { 10 namespace base {
11 class CommandLine; 11 class CommandLine;
12 } 12 }
13 13
14 namespace mojo {
15 namespace shell { 14 namespace shell {
16 15
17 // Creates a new ShellClient pipe and returns one end of it. The other end is 16 // 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 17 // passed via a token in |command_line|. A child of the calling process may
19 // extract a ShellClientRequest from this by calling 18 // extract a ShellClientRequest from this by calling
20 // GetShellClientRequestFromCommandLine(). 19 // GetShellClientRequestFromCommandLine().
21 mojom::ShellClientPtr PassShellClientRequestOnCommandLine( 20 mojom::ShellClientPtr PassShellClientRequestOnCommandLine(
22 base::CommandLine* command_line); 21 base::CommandLine* command_line);
23 22
24 // Extracts a ShellClientRequest from the command line of the current process. 23 // Extracts a ShellClientRequest from the command line of the current process.
25 // The parent of this process should have passed a request using 24 // The parent of this process should have passed a request using
26 // PassShellClientRequestOnCommandLine(). 25 // PassShellClientRequestOnCommandLine().
27 mojom::ShellClientRequest GetShellClientRequestFromCommandLine(); 26 mojom::ShellClientRequest GetShellClientRequestFromCommandLine();
28 27
29 } // namespace shell 28 } // namespace shell
30 } // namespace mojo
31 29
32 #endif // SERVICES_SHELL_RUNNER_COMMON_CLIENT_UTIL_H_ 30 #endif // SERVICES_SHELL_RUNNER_COMMON_CLIENT_UTIL_H_
OLDNEW
« no previous file with comments | « services/shell/runner/child/test_native_service.mojom ('k') | services/shell/runner/common/client_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698