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 CONTENT_APP_CONTENT_SERVICE_MANAGER_MAIN_DELEGATE_H_ | |
6 #define CONTENT_APP_CONTENT_SERVICE_MANAGER_MAIN_DELEGATE_H_ | |
7 | |
8 #include <memory> | |
9 | |
10 #include "base/macros.h" | |
11 #include "build/build_config.h" | |
12 #include "content/public/app/content_main.h" | |
13 #include "services/service_manager/embedder/main_delegate.h" | |
14 | |
15 namespace content { | |
16 | |
17 class ContentMainRunner; | |
18 | |
19 class ContentServiceManagerMainDelegate : public service_manager::MainDelegate { | |
20 public: | |
21 ContentServiceManagerMainDelegate(const ContentMainParams& params); | |
22 ~ContentServiceManagerMainDelegate() override; | |
23 | |
24 // service_manager::MainDelegate: | |
25 int Initialize(const InitializeParams& params) override; | |
26 int Run() override; | |
27 void ShutDown() override; | |
28 | |
29 private: | |
30 ContentMainParams content_main_params_; | |
31 std::unique_ptr<ContentMainRunner> content_main_runner_; | |
32 | |
33 #if defined(OS_ANDROID) | |
34 bool initialized_ = false; | |
35 #endif | |
36 | |
37 DISALLOW_COPY_AND_ASSIGN(ContentServiceManagerMainDelegate); | |
38 }; | |
39 | |
40 } // namespace content | |
41 | |
42 #endif // CONTENT_APP_CONTENT_SERVICE_MANAGER_MAIN_DELEGATE_H_ | |
OLD | NEW |