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/common/content_export.h" | |
13 #include "content/public/app/content_main.h" | |
14 #include "services/service_manager/embedder/main_delegate.h" | |
15 | |
16 namespace content { | |
17 | |
18 class ContentMainRunner; | |
19 | |
20 class CONTENT_EXPORT ContentServiceManagerMainDelegate | |
jam
2017/03/20 22:23:45
are you sure the export is needed? I don't think i
Ken Rockot(use gerrit already)
2017/03/20 22:57:31
Shouldn't be, removed
| |
21 : public service_manager::MainDelegate { | |
22 public: | |
23 ContentServiceManagerMainDelegate(const ContentMainParams& params); | |
24 ~ContentServiceManagerMainDelegate() override; | |
25 | |
26 // service_manager::MainDelegate: | |
27 int Initialize(const InitializeParams& params) override; | |
28 int Run() override; | |
29 void ShutDown() override; | |
30 | |
31 private: | |
32 ContentMainParams content_main_params_; | |
33 std::unique_ptr<ContentMainRunner> content_main_runner_; | |
34 | |
35 #if defined(OS_ANDROID) | |
36 bool initialized_ = false; | |
37 #endif | |
38 | |
39 DISALLOW_COPY_AND_ASSIGN(ContentServiceManagerMainDelegate); | |
40 }; | |
41 | |
42 } // namespace content | |
43 | |
44 #endif // CONTENT_APP_CONTENT_SERVICE_MANAGER_MAIN_DELEGATE_H_ | |
OLD | NEW |