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

Unified Diff: chrome/app/mash/mash_runner.h

Issue 1722743002: Adds ability for chrome to behave as mojo_runner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge to tip of tree Created 4 years, 10 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
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_

Powered by Google App Engine
This is Rietveld 408576698