OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/public/cpp/application/lib/service_connector_registry.h" | 5 #include "mojo/public/cpp/application/lib/service_connector_registry.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "mojo/public/cpp/application/application_connection.h" | |
10 #include "mojo/public/cpp/application/connection_context.h" | 9 #include "mojo/public/cpp/application/connection_context.h" |
11 #include "mojo/public/cpp/application/service_connector.h" | 10 #include "mojo/public/cpp/application/service_connector.h" |
12 | 11 |
13 namespace mojo { | 12 namespace mojo { |
14 namespace internal { | 13 namespace internal { |
15 | 14 |
16 ServiceConnectorRegistry::ServiceConnectorRegistry() {} | 15 ServiceConnectorRegistry::ServiceConnectorRegistry() {} |
17 | 16 |
18 ServiceConnectorRegistry::~ServiceConnectorRegistry() {} | 17 ServiceConnectorRegistry::~ServiceConnectorRegistry() {} |
19 | 18 |
(...skipping 20 matching lines...) Expand all Loading... |
40 if (iter != name_to_service_connector_.end()) { | 39 if (iter != name_to_service_connector_.end()) { |
41 iter->second->ConnectToService(connection_context, interface_name, | 40 iter->second->ConnectToService(connection_context, interface_name, |
42 client_handle->Pass()); | 41 client_handle->Pass()); |
43 return true; | 42 return true; |
44 } | 43 } |
45 return false; | 44 return false; |
46 } | 45 } |
47 | 46 |
48 } // namespace internal | 47 } // namespace internal |
49 } // namespace mojo | 48 } // namespace mojo |
OLD | NEW |