| // 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 <memory> |
| |
| #include "base/macros.h" |
| #include "services/shell/public/interfaces/service.mojom.h" |
| |
| namespace shell { |
| class Service; |
| } |
| |
| // Responsible for running mash, both child and main processes. |
| class MashRunner { |
| public: |
| MashRunner(); |
| ~MashRunner(); |
| |
| void Run(); |
| |
| private: |
| void RunMain(); |
| void RunChild(); |
| |
| void StartChildApp(shell::mojom::ServiceRequest service_request); |
| |
| std::unique_ptr<shell::Service> service_; |
| |
| DISALLOW_COPY_AND_ASSIGN(MashRunner); |
| }; |
| |
| int MashMain(); |
| |
| #endif // CHROME_APP_MASH_MASH_RUNNER_H_ |