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

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

Issue 1975993002: Change InterfaceFactory<I>::Create() to take a ConnectionContext instead of an ApplicationConnectio… (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
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/service_connector.h" 8 #include "mojo/public/cpp/application/service_connector.h"
9 9
10 namespace mojo { 10 namespace mojo {
(...skipping 30 matching lines...) Expand all
41 const std::string& ServiceRegistry::GetConnectionURL() { 41 const std::string& ServiceRegistry::GetConnectionURL() {
42 return connection_context_.connection_url; 42 return connection_context_.connection_url;
43 } 43 }
44 44
45 const std::string& ServiceRegistry::GetRemoteApplicationURL() { 45 const std::string& ServiceRegistry::GetRemoteApplicationURL() {
46 return connection_context_.remote_url; 46 return connection_context_.remote_url;
47 } 47 }
48 48
49 void ServiceRegistry::ConnectToService(const String& service_name, 49 void ServiceRegistry::ConnectToService(const String& service_name,
50 ScopedMessagePipeHandle client_handle) { 50 ScopedMessagePipeHandle client_handle) {
51 service_connector_registry_.ConnectToService(this, service_name, 51 service_connector_registry_.ConnectToService(connection_context_,
52 &client_handle); 52 service_name, &client_handle);
53 } 53 }
54 54
55 } // namespace internal 55 } // namespace internal
56 } // namespace mojo 56 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/public/cpp/application/lib/service_provider_impl.cc ('k') | mojo/public/cpp/application/service_connector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698