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

Unified Diff: shell/child_main.h

Issue 1055463004: Replace ChildProcess/AppChildProcess with a simple ChildMain(). (Closed) Base URL: https://github.com/domokit/mojo.git@simplify_child_6-x-simplify_child_5
Patch Set: rebased Created 5 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 | « shell/app_child_process.cc ('k') | shell/child_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/child_main.h
diff --git a/shell/child_main.h b/shell/child_main.h
new file mode 100644
index 0000000000000000000000000000000000000000..36cb9cddcd0252e6445fdad3f149b060074af1d6
--- /dev/null
+++ b/shell/child_main.h
@@ -0,0 +1,20 @@
+// Copyright 2014 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 SHELL_CHILD_MAIN_H_
+#define SHELL_CHILD_MAIN_H_
+
+namespace mojo {
+namespace shell {
+
+// The "main()" for child processes. This should be called with a
+// the |base::CommandLine| singleton initialized and a |base::AtExitManager|,
+// but without a |base::MessageLoop| for the current thread. Returns the exit
+// code for the process.
+int ChildMain();
+
+} // namespace shell
+} // namespace mojo
+
+#endif // SHELL_CHILD_MAIN_H_
« no previous file with comments | « shell/app_child_process.cc ('k') | shell/child_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698