OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef SERVICES_SERVICE_MANAGER_EMBEDDER_MAIN_H_ |
| 6 #define SERVICES_SERVICE_MANAGER_EMBEDDER_MAIN_H_ |
| 7 |
| 8 #include "build/build_config.h" |
| 9 #include "services/service_manager/embedder/service_manager_embedder_export.h" |
| 10 |
| 11 namespace service_manager { |
| 12 |
| 13 class MainDelegate; |
| 14 |
| 15 struct SERVICE_MANAGER_EMBEDDER_EXPORT MainParams { |
| 16 explicit MainParams(MainDelegate* delegate); |
| 17 ~MainParams(); |
| 18 |
| 19 MainDelegate* const delegate; |
| 20 |
| 21 #if defined(OS_POSIX) && !defined(OS_ANDROID) |
| 22 int argc = 0; |
| 23 const char** argv = nullptr; |
| 24 #endif |
| 25 }; |
| 26 |
| 27 // Main function which should be called as early as possible by any executable |
| 28 // embedding the service manager. |
| 29 int SERVICE_MANAGER_EMBEDDER_EXPORT Main(const MainParams& params); |
| 30 |
| 31 } // namespace service_manager |
| 32 |
| 33 #endif // SERVICES_SERVICE_MANAGER_EMBEDDER_MAIN_H_ |
OLD | NEW |