From c90ec6552b57ec596c35a4c44082ad518857a393 Mon Sep 17 00:00:00 2001 From: "sergeyu@chromium.org" Date: Mon, 9 Apr 2012 19:46:41 +0000 Subject: Add config validation for updateDaemonConfig() method. Review URL: https://chromiumcodereview.appspot.com/10024004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131411 0039d316-1c4b-4281-b951-d872f2087c98 --- remoting/webapp/host_plugin_proto.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 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 d26ec56..a0ada57 100644 --- a/remoting/webapp/host_plugin_proto.js +++ b/remoting/webapp/host_plugin_proto.js @@ -38,10 +38,18 @@ remoting.HostPlugin.prototype.getPinHash = function(hostId, pin) {}; * @return {void} Nothing. */ remoting.HostPlugin.prototype.generateKeyPair = function(callback) {}; -/** @param {string} config The new config, JSON encoded. - * @param {function(remoting.HostController.AsyncResult):void} callback +/** + * Updates host config with the values specified in |config|. All + * fields that are not specified in |config| remain + * unchanged. Following parameters cannot be changed using this + * function: host_id, xmpp_login. Error is returned if |config| + * includes these paramters. Changes take effect before the callback + * is called. + * + * @param {string} config The new config parameters, JSON encoded dictionary. + * @param {function(remoting.HostController.AsyncResult):void} callback * Callback to be called when finished. - * @return {void} Nothing. */ + * @return {void} Nothing. */ remoting.HostPlugin.prototype.updateDaemonConfig = function(config, callback) {}; -- cgit v1.1