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

Side by Side Diff: ios/web/webui/resources/service_registry.js

Issue 2079943002: Change RenderFrame to use InterfaceRegistry et al. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a2
Patch Set: . Created 4 years, 6 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "content/public/renderer/frame_service_registry" 5 // Module "content/public/renderer/frame_remote_interface_registry"
6 // 6 //
7 // This module provides the JavaScript bindings for 7 // This module provides the JavaScript bindings for
8 // services/shell/public/cpp/connection.h. 8 // services/shell/public/cpp/connection.h.
9 // Refer to that file for more detailed documentation for equivalent methods. 9 // Refer to that file for more detailed documentation for equivalent methods.
10 10
11 define("content/public/renderer/frame_service_registry", [ 11 define("content/public/renderer/frame_service_registry", [
12 "ios/mojo/public/js/sync_message_channel", 12 "ios/mojo/public/js/sync_message_channel",
13 "ios/mojo/public/js/handle_util", 13 "ios/mojo/public/js/handle_util",
14 ], function(syncMessageChannel, handleUtil) { 14 ], function(syncMessageChannel, handleUtil) {
15 15
16 /** 16 /**
17 * Connects to specified Mojo interface. 17 * Connects to specified Mojo interface.
18 * @param {string} serviceName service name to connect. 18 * @param {string} serviceName service name to connect.
19 * @return {!MojoResult} Result code. 19 * @return {!MojoResult} Result code.
20 */ 20 */
21 function connectToService(serviceName) { 21 function connectToService(serviceName) {
22 var nativeHandle = syncMessageChannel.sendMessage({ 22 var nativeHandle = syncMessageChannel.sendMessage({
23 name: "service_provider.connectToService", 23 name: "service_provider.connectToService",
24 args: { 24 args: {
25 serviceName: serviceName 25 serviceName: serviceName
26 } 26 }
27 }); 27 });
28 return handleUtil.getJavaScriptHandle(nativeHandle); 28 return handleUtil.getJavaScriptHandle(nativeHandle);
29 } 29 }
30 30
31 var exports = {}; 31 var exports = {};
32 exports.connectToService = connectToService; 32 exports.connectToService = connectToService;
33 return exports; 33 return exports;
34 }); 34 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698