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 #include "mojo/application/public/cpp/service_provider_impl.h" | 5 #include "mojo/application/public/cpp/service_provider_impl.h" |
6 | 6 |
7 #include "mojo/application/public/cpp/service_connector.h" | 7 #include "mojo/application/public/cpp/service_connector.h" |
8 #include "third_party/mojo/src/mojo/public/cpp/environment/logging.h" | 8 #include "mojo/public/cpp/environment/logging.h" |
9 | 9 |
10 namespace mojo { | 10 namespace mojo { |
11 | 11 |
12 ServiceProviderImpl::ServiceProviderImpl() : binding_(this) { | 12 ServiceProviderImpl::ServiceProviderImpl() : binding_(this) { |
13 } | 13 } |
14 | 14 |
15 ServiceProviderImpl::ServiceProviderImpl( | 15 ServiceProviderImpl::ServiceProviderImpl( |
16 InterfaceRequest<ServiceProvider> request) | 16 InterfaceRequest<ServiceProvider> request) |
17 : binding_(this, request.Pass()) { | 17 : binding_(this, request.Pass()) { |
18 } | 18 } |
(...skipping 15 matching lines...) Expand all Loading... |
34 } | 34 } |
35 | 35 |
36 void ServiceProviderImpl::SetServiceConnectorForName( | 36 void ServiceProviderImpl::SetServiceConnectorForName( |
37 ServiceConnector* service_connector, | 37 ServiceConnector* service_connector, |
38 const std::string& interface_name) { | 38 const std::string& interface_name) { |
39 service_connector_registry_.SetServiceConnectorForName(service_connector, | 39 service_connector_registry_.SetServiceConnectorForName(service_connector, |
40 interface_name); | 40 interface_name); |
41 } | 41 } |
42 | 42 |
43 } // namespace mojo | 43 } // namespace mojo |
OLD | NEW |