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 10 matching lines...) Expand all Loading... |
21 } | 21 } |
22 | 22 |
23 namespace catalog { | 23 namespace catalog { |
24 class Catalog; | 24 class Catalog; |
25 class Store; | 25 class Store; |
26 } | 26 } |
27 | 27 |
28 namespace service_manager { | 28 namespace service_manager { |
29 class NativeRunnerDelegate; | 29 class NativeRunnerDelegate; |
30 | 30 |
31 // The "global" context for the shell's main process. | 31 // The "global" context for the service manager's main process. |
32 class Context : public mojo::edk::ProcessDelegate { | 32 class Context : public mojo::edk::ProcessDelegate { |
33 public: | 33 public: |
34 struct InitParams { | 34 struct InitParams { |
35 InitParams(); | 35 InitParams(); |
36 ~InitParams(); | 36 ~InitParams(); |
37 | 37 |
38 NativeRunnerDelegate* native_runner_delegate = nullptr; | 38 NativeRunnerDelegate* native_runner_delegate = nullptr; |
39 std::unique_ptr<catalog::Store> catalog_store; | 39 std::unique_ptr<catalog::Store> catalog_store; |
40 // If true the edk is initialized. | 40 // If true the edk is initialized. |
41 bool init_edk = true; | 41 bool init_edk = true; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 std::unique_ptr<ServiceManager> service_manager_; | 76 std::unique_ptr<ServiceManager> service_manager_; |
77 base::Time main_entry_time_; | 77 base::Time main_entry_time_; |
78 bool init_edk_ = false; | 78 bool init_edk_ = false; |
79 | 79 |
80 DISALLOW_COPY_AND_ASSIGN(Context); | 80 DISALLOW_COPY_AND_ASSIGN(Context); |
81 }; | 81 }; |
82 | 82 |
83 } // namespace service_manager | 83 } // namespace service_manager |
84 | 84 |
85 #endif // SERVICES_SERVICE_MANAGER_STANDALONE_CONTEXT_H_ | 85 #endif // SERVICES_SERVICE_MANAGER_STANDALONE_CONTEXT_H_ |
OLD | NEW |