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

Unified Diff: mojo/shell/runner/common/client_util.h

Issue 1801963002: Change primordial pipes to ShellClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase onto catalog CL Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/shell/runner/common/BUILD.gn ('k') | mojo/shell/runner/common/client_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/runner/common/client_util.h
diff --git a/mojo/shell/runner/common/client_util.h b/mojo/shell/runner/common/client_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..ac61c77fa1be8a6445b3ca62884b855b17ce620f
--- /dev/null
+++ b/mojo/shell/runner/common/client_util.h
@@ -0,0 +1,32 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MOJO_SHELL_RUNNER_COMMON_CLIENT_UTIL_H_
+#define MOJO_SHELL_RUNNER_COMMON_CLIENT_UTIL_H_
+
+#include "mojo/shell/public/interfaces/shell_client.mojom.h"
+
+namespace base {
+class CommandLine;
+}
+
+namespace mojo {
+namespace shell {
+
+// Creates a new ShellClient pipe and returns one end of it. The other end is
+// passed via a token in |command_line|. A child of the calling process may
+// extract a ShellClientRequest from this by calling
+// GetShellClientRequestFromCommandLine().
+mojom::ShellClientPtr PassShellClientRequestOnCommandLine(
+ base::CommandLine* command_line);
+
+// Extracts a ShellClientRequest from the command line of the current process.
+// The parent of this process should have passed a request using
+// PassShellClientRequestOnCommandLine().
+mojom::ShellClientRequest GetShellClientRequestFromCommandLine();
+
+} // namespace shell
+} // namespace mojo
+
+#endif // MOJO_SHELL_RUNNER_COMMON_CLIENT_UTIL_H_
« no previous file with comments | « mojo/shell/runner/common/BUILD.gn ('k') | mojo/shell/runner/common/client_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698