From 7e5a3b7da21f756b5b093ec73ba84d72aace80d8 Mon Sep 17 00:00:00 2001 From: "lambroslambrou@chromium.org" Date: Wed, 6 Feb 2013 06:51:02 +0000 Subject: Make NPAPI Me2Me interface return results via callback parameters. This is to aid migration to Native Messaging, where the web-app will need to pass callbacks to receive all information asynchronously from the Native Messaging host. BUG=173509 TEST=register, start and connect to a host, change PIN, 0 jscompile errors Review URL: https://chromiumcodereview.appspot.com/12089099 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180905 0039d316-1c4b-4281-b951-d872f2087c98 --- remoting/webapp/host_plugin_proto.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'remoting/webapp/host_plugin_proto.js') diff --git a/remoting/webapp/host_plugin_proto.js b/remoting/webapp/host_plugin_proto.js index fd4255e..0074fa6 100644 --- a/remoting/webapp/host_plugin_proto.js +++ b/remoting/webapp/host_plugin_proto.js @@ -25,13 +25,17 @@ remoting.HostPlugin.prototype.disconnect = function() {}; * @return {void} Nothing. */ remoting.HostPlugin.prototype.localize = function(callback) {}; -/** @return {string} Local hostname. */ -remoting.HostPlugin.prototype.getHostName = function() {}; +/** @param {function(string):void} callback Callback to be called with the + * local hostname. + * @return {void} Nothing. */ +remoting.HostPlugin.prototype.getHostName = function(callback) {}; /** @param {string} hostId The host ID. * @param {string} pin The PIN. - * @return {string} The hash encoded with Base64. */ -remoting.HostPlugin.prototype.getPinHash = function(hostId, pin) {}; + * @param {function(string):void} callback Callback to be called with the hash + * encoded with Base64. + * @return {void} Nothing. */ +remoting.HostPlugin.prototype.getPinHash = function(hostId, pin, callback) {}; /** @param {function(string, string):void} callback Callback to be called * after new key is generated. -- cgit v1.1