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

Unified Diff: services/service_manager/embedder/main.h

Issue 2613653003: Move some basic early process init into Service Manager (Closed)
Patch Set: fix mac shutdown order Created 3 years, 9 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
« no previous file with comments | « services/service_manager/embedder/mac_init.mm ('k') | services/service_manager/embedder/main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/service_manager/embedder/main.h
diff --git a/services/service_manager/embedder/main.h b/services/service_manager/embedder/main.h
new file mode 100644
index 0000000000000000000000000000000000000000..e86697a26d0f1a826bda214bb66ee882eef23f49
--- /dev/null
+++ b/services/service_manager/embedder/main.h
@@ -0,0 +1,33 @@
+// Copyright 2017 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 SERVICES_SERVICE_MANAGER_EMBEDDER_MAIN_H_
+#define SERVICES_SERVICE_MANAGER_EMBEDDER_MAIN_H_
+
+#include "build/build_config.h"
+#include "services/service_manager/embedder/service_manager_embedder_export.h"
+
+namespace service_manager {
+
+class MainDelegate;
+
+struct SERVICE_MANAGER_EMBEDDER_EXPORT MainParams {
+ explicit MainParams(MainDelegate* delegate);
+ ~MainParams();
+
+ MainDelegate* const delegate;
+
+#if defined(OS_POSIX) && !defined(OS_ANDROID)
+ int argc = 0;
+ const char** argv = nullptr;
+#endif
+};
+
+// Main function which should be called as early as possible by any executable
+// embedding the service manager.
+int SERVICE_MANAGER_EMBEDDER_EXPORT Main(const MainParams& params);
+
+} // namespace service_manager
+
+#endif // SERVICES_SERVICE_MANAGER_EMBEDDER_MAIN_H_
« no previous file with comments | « services/service_manager/embedder/mac_init.mm ('k') | services/service_manager/embedder/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698