Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(475)

Side by Side Diff: services/service_manager/public/cpp/service_context.h

Issue 2700123002: Revert of service_manager: More consistent Service lifecycle API (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « services/service_manager/public/cpp/service.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « services/service_manager/public/cpp/service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698