OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef SERVICES_SERVICE_MANAGER_STANDALONE_CONTEXT_H_ | 5 #ifndef SERVICES_SERVICE_MANAGER_STANDALONE_CONTEXT_H_ |
6 #define SERVICES_SERVICE_MANAGER_STANDALONE_CONTEXT_H_ | 6 #define SERVICES_SERVICE_MANAGER_STANDALONE_CONTEXT_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 namespace catalog { | 24 namespace catalog { |
25 class Catalog; | 25 class Catalog; |
26 class Store; | 26 class Store; |
27 } | 27 } |
28 | 28 |
29 namespace service_manager { | 29 namespace service_manager { |
30 | 30 |
31 constexpr size_t kThreadPoolMaxThreads = 3; | 31 constexpr size_t kThreadPoolMaxThreads = 3; |
32 | 32 |
33 class NativeRunnerDelegate; | |
34 | |
35 // The "global" context for the service manager's main process. | 33 // The "global" context for the service manager's main process. |
36 class Context : public mojo::edk::ProcessDelegate { | 34 class Context : public mojo::edk::ProcessDelegate { |
37 public: | 35 public: |
38 struct InitParams { | 36 struct InitParams { |
39 InitParams(); | 37 InitParams(); |
40 ~InitParams(); | 38 ~InitParams(); |
41 | 39 |
42 NativeRunnerDelegate* native_runner_delegate = nullptr; | 40 ServiceProcessLauncher::Delegate* |
| 41 service_process_launcher_delegate = nullptr; |
43 std::unique_ptr<catalog::Store> catalog_store; | 42 std::unique_ptr<catalog::Store> catalog_store; |
44 // If true the edk is initialized. | 43 // If true the edk is initialized. |
45 bool init_edk = true; | 44 bool init_edk = true; |
46 }; | 45 }; |
47 | 46 |
48 Context(); | 47 Context(); |
49 ~Context() override; | 48 ~Context() override; |
50 | 49 |
51 static void EnsureEmbedderIsInitialized(); | 50 static void EnsureEmbedderIsInitialized(); |
52 | 51 |
(...skipping 28 matching lines...) Expand all Loading... |
81 std::unique_ptr<ServiceManager> service_manager_; | 80 std::unique_ptr<ServiceManager> service_manager_; |
82 base::Time main_entry_time_; | 81 base::Time main_entry_time_; |
83 bool init_edk_ = false; | 82 bool init_edk_ = false; |
84 | 83 |
85 DISALLOW_COPY_AND_ASSIGN(Context); | 84 DISALLOW_COPY_AND_ASSIGN(Context); |
86 }; | 85 }; |
87 | 86 |
88 } // namespace service_manager | 87 } // namespace service_manager |
89 | 88 |
90 #endif // SERVICES_SERVICE_MANAGER_STANDALONE_CONTEXT_H_ | 89 #endif // SERVICES_SERVICE_MANAGER_STANDALONE_CONTEXT_H_ |
OLD | NEW |