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

Side by Side Diff: mojo/public/cpp/application/lib/service_registry.cc

Issue 1966003002: Remove ApplicationConnection::GetServiceProvider(). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 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 | « mojo/public/cpp/application/lib/service_registry.h ('k') | services/log/log_impl_unittest.cc » ('j') | 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 "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
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
OLDNEW
« no previous file with comments | « mojo/public/cpp/application/lib/service_registry.h ('k') | services/log/log_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698