| 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/public/cpp/application/lib/service_registry.h" | 5 #include "mojo/public/cpp/application/lib/service_registry.h" |
| 6 | 6 |
| 7 #include "mojo/public/cpp/application/application_connection.h" | 7 #include "mojo/public/cpp/application/application_connection.h" |
| 8 #include "mojo/public/cpp/application/application_impl.h" | 8 #include "mojo/public/cpp/application/application_impl.h" |
| 9 #include "mojo/public/cpp/application/service_connector.h" | 9 #include "mojo/public/cpp/application/service_connector.h" |
| 10 | 10 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 } | 49 } |
| 50 | 50 |
| 51 const std::string& ServiceRegistry::GetConnectionURL() { | 51 const std::string& ServiceRegistry::GetConnectionURL() { |
| 52 return connection_url_; | 52 return connection_url_; |
| 53 } | 53 } |
| 54 | 54 |
| 55 const std::string& ServiceRegistry::GetRemoteApplicationURL() { | 55 const std::string& ServiceRegistry::GetRemoteApplicationURL() { |
| 56 return remote_url_; | 56 return remote_url_; |
| 57 } | 57 } |
| 58 | 58 |
| 59 ServiceProvider* ServiceRegistry::GetServiceProvider() { | |
| 60 return remote_service_provider_.get(); | |
| 61 } | |
| 62 | |
| 63 void ServiceRegistry::ConnectToService(const mojo::String& service_name, | 59 void ServiceRegistry::ConnectToService(const mojo::String& service_name, |
| 64 ScopedMessagePipeHandle client_handle) { | 60 ScopedMessagePipeHandle client_handle) { |
| 65 service_connector_registry_.ConnectToService(this, service_name, | 61 service_connector_registry_.ConnectToService(this, service_name, |
| 66 &client_handle); | 62 &client_handle); |
| 67 } | 63 } |
| 68 | 64 |
| 69 } // namespace internal | 65 } // namespace internal |
| 70 } // namespace mojo | 66 } // namespace mojo |
| OLD | NEW |