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

Side by Side 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW
« 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