Index: chrome/app/mash/mash_runner.h |
diff --git a/chrome/app/mash/mash_runner.h b/chrome/app/mash/mash_runner.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0658077c1473df22485ecd7ae4d7ad457c0c629f |
--- /dev/null |
+++ b/chrome/app/mash/mash_runner.h |
@@ -0,0 +1,39 @@ |
+// 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 CHROME_APP_MASH_MASH_RUNNER_H_ |
+#define CHROME_APP_MASH_MASH_RUNNER_H_ |
+ |
+#include "base/macros.h" |
+#include "base/memory/scoped_ptr.h" |
+#include "mojo/shell/public/interfaces/shell_client.mojom.h" |
+ |
+namespace mojo { |
+class ShellClient; |
+class ShellConnection; |
+} |
+ |
+// Responsible for running mash, both child and main processes. |
+class MashRunner { |
+ public: |
+ MashRunner(); |
+ ~MashRunner(); |
+ |
+ void Run(); |
+ |
+ private: |
+ void RunMain(); |
+ void RunChild(); |
+ |
+ void StartChildApp(mojo::shell::mojom::ShellClientRequest client_request); |
+ |
+ scoped_ptr<mojo::ShellClient> shell_client_; |
+ scoped_ptr<mojo::ShellConnection> shell_connection_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(MashRunner); |
+}; |
+ |
+int MashMain(); |
+ |
+#endif // CHROME_APP_MASH_MASH_RUNNER_H_ |