diff options
author | lambroslambrou@chromium.org <lambroslambrou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-06 06:51:02 +0000 |
---|---|---|
committer | lambroslambrou@chromium.org <lambroslambrou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-06 06:51:02 +0000 |
commit | 7e5a3b7da21f756b5b093ec73ba84d72aace80d8 (patch) | |
tree | 0250497a69371e9c8b2788e3be3c1963d2efbfd2 /remoting/webapp/host_plugin_proto.js | |
parent | 51a2478710c9b2beda273832f2e4f4c825aa279a (diff) | |
download | chromium_src-7e5a3b7da21f756b5b093ec73ba84d72aace80d8.zip chromium_src-7e5a3b7da21f756b5b093ec73ba84d72aace80d8.tar.gz chromium_src-7e5a3b7da21f756b5b093ec73ba84d72aace80d8.tar.bz2 |
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
Diffstat (limited to 'remoting/webapp/host_plugin_proto.js')
-rw-r--r-- | remoting/webapp/host_plugin_proto.js | 12 |
1 files changed, 8 insertions, 4 deletions
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. |