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

Unified Diff: remoting/webapp/host_it2me_dispatcher.js

Issue 131483011: Fix jscompile issues in remoting webapp. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/webapp/host_it2me_native_messaging.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/host_it2me_dispatcher.js
diff --git a/remoting/webapp/host_it2me_dispatcher.js b/remoting/webapp/host_it2me_dispatcher.js
index b018db68514f88d306714f5f42615c7e63febff7..5aff33d682a1c5213a587fa6b24ba1e288bf13b4 100644
--- a/remoting/webapp/host_it2me_dispatcher.js
+++ b/remoting/webapp/host_it2me_dispatcher.js
@@ -38,6 +38,8 @@ remoting.HostIt2MeDispatcher = function() {
* invoke when the host state changes.
* @param {function(boolean):void} onNatPolicyChanged Callback to invoke when
* the nat traversal policy changes.
+ * @param {function(string):void} logDebugInfo Callback allowing the plugin
+ * to log messages to the debug log.
* @param {string} xmppServerAddress XMPP server host name (or IP address) and
* port.
* @param {boolean} xmppServerUseTls Whether to use TLS on connections to the
@@ -49,9 +51,11 @@ remoting.HostIt2MeDispatcher = function() {
*/
remoting.HostIt2MeDispatcher.prototype.initAndConnect =
function(createPluginCallback, email, authServiceWithToken, onStateChanged,
- onNatPolicyChanged, xmppServerAddress, xmppServerUseTls,
- directoryBotJid, onError) {
+ onNatPolicyChanged, logDebugInfo, xmppServerAddress,
+ xmppServerUseTls, directoryBotJid, onError) {
+ /** @type {remoting.HostIt2MeDispatcher} */
var that = this;
+
function onNativeMessagingStarted() {
console.log('Native Messaging supported.');
that.nativeMessagingHost_.connect(
@@ -69,7 +73,7 @@ remoting.HostIt2MeDispatcher.prototype.initAndConnect =
that.npapiHost_.xmppServerUseTls = xmppServerUseTls;
that.npapiHost_.directoryBotJid = directoryBotJid;
that.npapiHost_.onStateChanged = onStateChanged;
- that.npapiHost_.onNatTraversalPolicyChanged = onNatTraversalPolicyChanged;
+ that.npapiHost_.onNatTraversalPolicyChanged = onNatPolicyChanged;
that.npapiHost_.logDebugInfo = logDebugInfo;
that.npapiHost_.localize(chrome.i18n.getMessage);
that.npapiHost_.connect(email, authServiceWithToken);
« no previous file with comments | « no previous file | remoting/webapp/host_it2me_native_messaging.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698