| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PUBLIC_CPP_SERVICE_CONTEXT_H_ | 5 #ifndef SERVICES_SERVICE_MANAGER_PUBLIC_CPP_SERVICE_CONTEXT_H_ |
| 6 #define SERVICES_SERVICE_MANAGER_PUBLIC_CPP_SERVICE_CONTEXT_H_ | 6 #define SERVICES_SERVICE_MANAGER_PUBLIC_CPP_SERVICE_CONTEXT_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 139 |
| 140 std::unique_ptr<service_manager::Service> service_; | 140 std::unique_ptr<service_manager::Service> service_; |
| 141 mojo::Binding<mojom::Service> binding_; | 141 mojo::Binding<mojom::Service> binding_; |
| 142 std::unique_ptr<Connector> connector_; | 142 std::unique_ptr<Connector> connector_; |
| 143 service_manager::ServiceInfo local_info_; | 143 service_manager::ServiceInfo local_info_; |
| 144 | 144 |
| 145 // This instance's control interface to the service manager. Note that this | 145 // This instance's control interface to the service manager. Note that this |
| 146 // is unbound and therefore invalid until OnStart() is called. | 146 // is unbound and therefore invalid until OnStart() is called. |
| 147 mojom::ServiceControlAssociatedPtr service_control_; | 147 mojom::ServiceControlAssociatedPtr service_control_; |
| 148 | 148 |
| 149 bool service_started_ = false; | |
| 150 bool service_quit_ = false; | 149 bool service_quit_ = false; |
| 151 | 150 |
| 152 base::Closure connection_lost_closure_; | 151 base::Closure connection_lost_closure_; |
| 153 | 152 |
| 154 base::WeakPtrFactory<ServiceContext> weak_factory_; | 153 base::WeakPtrFactory<ServiceContext> weak_factory_; |
| 155 | 154 |
| 156 DISALLOW_COPY_AND_ASSIGN(ServiceContext); | 155 DISALLOW_COPY_AND_ASSIGN(ServiceContext); |
| 157 }; | 156 }; |
| 158 | 157 |
| 159 } // namespace service_manager | 158 } // namespace service_manager |
| 160 | 159 |
| 161 #endif // SERVICES_SERVICE_MANAGER_PUBLIC_CPP_SERVICE_CONTEXT_H_ | 160 #endif // SERVICES_SERVICE_MANAGER_PUBLIC_CPP_SERVICE_CONTEXT_H_ |
| OLD | NEW |