| // Copyright 2015 The Chromium OS 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 GERM_LAUNCHER_H_ |
| #define GERM_LAUNCHER_H_ |
| |
| #include <memory> |
| #include <string> |
| #include <vector> |
| |
| #include <base/macros.h> |
| |
| namespace germ { |
| |
| class UidService; |
| |
| class Launcher { |
| public: |
| Launcher(); |
| ~Launcher(); |
| |
| bool RunInteractive(const std::string& name, |
| const std::vector<std::string>& argv, |
| int* status); |
| bool RunService(const std::string& name, |
| const std::vector<std::string>& argv, |
| pid_t* pid); |
| |
| private: |
| std::unique_ptr<UidService> uid_service_; |
| |
| DISALLOW_COPY_AND_ASSIGN(Launcher); |
| }; |
| |
| } // namespace germ |
| |
| #endif // GERM_LAUNCHER_H_ |