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

Side by Side Diff: services/service_manager/public/interfaces/connector.mojom

Issue 2816393002: Implement Connector::ApplySpec() & use to enforce navigation:frame (Closed)
Patch Set: . Created 3 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 module service_manager.mojom; 5 module service_manager.mojom;
6 6
7 import "services/service_manager/public/interfaces/interface_provider.mojom"; 7 import "services/service_manager/public/interfaces/interface_provider.mojom";
8 8
9 // TODO(beng): Determine who (if anyone) uses kRootUserID. 9 // TODO(beng): Determine who (if anyone) uses kRootUserID.
10 const string kRootUserID = "505C0EE9-3013-43C0-82B0-A84F50CF8D84"; 10 const string kRootUserID = "505C0EE9-3013-43C0-82B0-A84F50CF8D84";
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 // process may not have been launched by the time BindInterface() is 157 // process may not have been launched by the time BindInterface() is
158 // called.) 158 // called.)
159 // 159 //
160 StartServiceWithProcess(Identity target, 160 StartServiceWithProcess(Identity target,
161 handle<message_pipe> service, 161 handle<message_pipe> service,
162 PIDReceiver& pid_receiver_request) => 162 PIDReceiver& pid_receiver_request) =>
163 (ConnectResult result, Identity identity); 163 (ConnectResult result, Identity identity);
164 164
165 // Clones this Connector so it can be passed to another thread. 165 // Clones this Connector so it can be passed to another thread.
166 Clone(Connector& request); 166 Clone(Connector& request);
167
168 // Asks the Service Manager to enforce the rules contained in the
169 // InterfaceProviderSpec named |spec| in the calling service's service
170 // manifest on incoming interface requests from |source|.
171 //
172 // The flow is basically - remote service wishes to (generically) request
173 // interfaces from this service, and so sends us an InterfaceProvider request
174 // (|source_request|) which it would like us to bind. We forward this request
175 // to the Service Manager, passing our actual InterfaceProvider implementation
176 // in |target|. The Service Manager will only forward interface requests that
177 // were permitted by intersecting |source|'s manifest requirements with the
178 // contents of |spec|.
179 ApplySpec(string spec,
Ken Rockot(use gerrit already) 2017/04/26 04:32:48 I was kind of thinking we could call specs "interf
Tom Sepez 2017/04/26 16:22:36 Yea, SetInterfaceFilter(string filter_name, ... ??
Ben Goodger (Google) 2017/04/26 17:00:07 FilterInterfaces sounds fine.
180 Identity source,
181 InterfaceProvider& source_request,
182 InterfaceProvider target);
167 }; 183 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698