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/application/public/cpp/lib/service_connector_registry.h" | 5 #include "mojo/shell/public/cpp/lib/service_connector_registry.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "mojo/application/public/cpp/service_connector.h" | 9 #include "mojo/shell/public/cpp/service_connector.h" |
10 | 10 |
11 namespace mojo { | 11 namespace mojo { |
12 namespace internal { | 12 namespace internal { |
13 | 13 |
14 ServiceConnectorRegistry::ServiceConnectorRegistry() | 14 ServiceConnectorRegistry::ServiceConnectorRegistry() |
15 : service_connector_(nullptr) { | 15 : service_connector_(nullptr) { |
16 } | 16 } |
17 | 17 |
18 ServiceConnectorRegistry::~ServiceConnectorRegistry() { | 18 ServiceConnectorRegistry::~ServiceConnectorRegistry() { |
19 for (NameToServiceConnectorMap::iterator i = | 19 for (NameToServiceConnectorMap::iterator i = |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 return; | 52 return; |
53 } | 53 } |
54 if (service_connector_) { | 54 if (service_connector_) { |
55 service_connector_->ConnectToService(application_connection, interface_name, | 55 service_connector_->ConnectToService(application_connection, interface_name, |
56 std::move(client_handle)); | 56 std::move(client_handle)); |
57 } | 57 } |
58 } | 58 } |
59 | 59 |
60 } // namespace internal | 60 } // namespace internal |
61 } // namespace mojo | 61 } // namespace mojo |
OLD | NEW |