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

Side by Side Diff: services/service_manager/public/cpp/lib/service_context.cc

Issue 2857963004: Flatten Connector & ConnectorImpl (Closed)
Patch Set: . Created 3 years, 7 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/lib/connector_impl.cc ('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 #include "services/service_manager/public/cpp/service_context.h" 5 #include "services/service_manager/public/cpp/service_context.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "mojo/public/cpp/bindings/interface_request.h" 11 #include "mojo/public/cpp/bindings/interface_request.h"
12 #include "services/service_manager/public/cpp/lib/connector_impl.h" 12 #include "services/service_manager/public/cpp/connector.h"
13 #include "services/service_manager/public/cpp/service.h" 13 #include "services/service_manager/public/cpp/service.h"
14 14
15 namespace service_manager { 15 namespace service_manager {
16 16
17 //////////////////////////////////////////////////////////////////////////////// 17 ////////////////////////////////////////////////////////////////////////////////
18 // ServiceContext, public: 18 // ServiceContext, public:
19 19
20 ServiceContext::ServiceContext( 20 ServiceContext::ServiceContext(
21 std::unique_ptr<service_manager::Service> service, 21 std::unique_ptr<service_manager::Service> service,
22 mojom::ServiceRequest request, 22 mojom::ServiceRequest request,
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // ServiceContext, private: 97 // ServiceContext, private:
98 98
99 void ServiceContext::OnConnectionError() { 99 void ServiceContext::OnConnectionError() {
100 if (service_->OnServiceManagerConnectionLost()) { 100 if (service_->OnServiceManagerConnectionLost()) {
101 // CAUTION: May delete |this|. 101 // CAUTION: May delete |this|.
102 QuitNow(); 102 QuitNow();
103 } 103 }
104 } 104 }
105 105
106 } // namespace service_manager 106 } // namespace service_manager
OLDNEW
« no previous file with comments | « services/service_manager/public/cpp/lib/connector_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698