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

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

Issue 1565343003: Move mojo/application/public -> mojo/shell/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fetcher
Patch Set: . Created 4 years, 11 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/shell/public/cpp/lib/service_registry.h ('k') | mojo/shell/public/cpp/service_connector.h » ('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/application/public/cpp/lib/service_registry.h" 5 #include "mojo/shell/public/cpp/lib/service_registry.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "mojo/application/public/cpp/application_connection.h" 13 #include "mojo/shell/public/cpp/application_connection.h"
14 #include "mojo/application/public/cpp/service_connector.h" 14 #include "mojo/shell/public/cpp/service_connector.h"
15 15
16 namespace mojo { 16 namespace mojo {
17 namespace internal { 17 namespace internal {
18 18
19 ServiceRegistry::ServiceRegistry( 19 ServiceRegistry::ServiceRegistry(
20 const std::string& connection_url, 20 const std::string& connection_url,
21 const std::string& remote_url, 21 const std::string& remote_url,
22 ServiceProviderPtr remote_services, 22 ServiceProviderPtr remote_services,
23 InterfaceRequest<ServiceProvider> local_services, 23 InterfaceRequest<ServiceProvider> local_services,
24 const std::set<std::string>& allowed_interfaces) 24 const std::set<std::string>& allowed_interfaces)
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 } 129 }
130 130
131 void ServiceRegistry::ConnectToService(const mojo::String& service_name, 131 void ServiceRegistry::ConnectToService(const mojo::String& service_name,
132 ScopedMessagePipeHandle client_handle) { 132 ScopedMessagePipeHandle client_handle) {
133 service_connector_registry_.ConnectToService(this, service_name, 133 service_connector_registry_.ConnectToService(this, service_name,
134 std::move(client_handle)); 134 std::move(client_handle));
135 } 135 }
136 136
137 } // namespace internal 137 } // namespace internal
138 } // namespace mojo 138 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/shell/public/cpp/lib/service_registry.h ('k') | mojo/shell/public/cpp/service_connector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698