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

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

Issue 2419063003: Move services/shell to services/service_manager (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « services/shell/runner/common/BUILD.gn ('k') | services/shell/runner/common/client_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 SERVICES_SHELL_RUNNER_COMMON_CLIENT_UTIL_H_
6 #define SERVICES_SHELL_RUNNER_COMMON_CLIENT_UTIL_H_
7
8 #include <string>
9
10 #include "services/shell/public/interfaces/service.mojom.h"
11
12 namespace base {
13 class CommandLine;
14 }
15
16 namespace shell {
17
18 // Creates a new Service pipe and returns one end of it. The other end is
19 // passed via a token in |command_line|. A child of the calling process may
20 // extract a ServiceRequest from this by calling
21 // GetServiceRequestFromCommandLine().
22 mojom::ServicePtr PassServiceRequestOnCommandLine(
23 base::CommandLine* command_line, const std::string& child_token);
24
25 // Extracts a ServiceRequest from the command line of the current process.
26 // The parent of this process should have passed a request using
27 // PassServiceRequestOnCommandLine().
28 mojom::ServiceRequest GetServiceRequestFromCommandLine();
29
30 // Returns true if the ServiceRequest came via the command line from a shell
31 // instance in another process.
32 bool ShellIsRemote();
33
34 } // namespace shell
35
36 #endif // SERVICES_SHELL_RUNNER_COMMON_CLIENT_UTIL_H_
OLDNEW
« no previous file with comments | « services/shell/runner/common/BUILD.gn ('k') | services/shell/runner/common/client_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698