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

Unified Diff: remoting/webapp/crd/js/session_connector_impl.js

Issue 1010053002: [Webapp Refactor] Implements remoting.ConnectionInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reviewer's feedback Created 5 years, 9 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 | « remoting/webapp/crd/js/session_connector.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/crd/js/session_connector_impl.js
diff --git a/remoting/webapp/crd/js/session_connector_impl.js b/remoting/webapp/crd/js/session_connector_impl.js
index b415a47f8ba0ac9a662d2a59623d1e30f29bbc40..b7e196a06b1e8fe56f89ff5128f64d6946e9bd47 100644
--- a/remoting/webapp/crd/js/session_connector_impl.js
+++ b/remoting/webapp/crd/js/session_connector_impl.js
@@ -28,7 +28,7 @@ remoting.desktopConnectedView = null;
/**
* @param {HTMLElement} clientContainer Container element for the client view.
- * @param {function(remoting.ClientSession):void} onConnected Callback on
+ * @param {function(remoting.ConnectionInfo):void} onConnected Callback on
* success.
* @param {function(!remoting.Error):void} onError Callback on error.
* @param {function(string, string):boolean} appProtocolExtensionHandler The
@@ -51,7 +51,7 @@ remoting.SessionConnectorImpl = function(clientContainer, onConnected, onError,
/** @private {HTMLElement} */
this.clientContainer_ = clientContainer;
- /** @private {function(remoting.ClientSession):void} */
+ /** @private {function(remoting.ConnectionInfo):void} */
this.onConnected_ = onConnected;
/** @private {function(!remoting.Error):void} */
@@ -478,7 +478,10 @@ remoting.SessionConnectorImpl.prototype.onStateChange_ = function(event) {
this.reconnector_ =
new remoting.SmartReconnector(this, this.clientSession_);
}
- this.onConnected_(this.clientSession_);
+ var connectionInfo = new remoting.ConnectionInfo(
+ this.host_, this.credentialsProvider_, this.clientSession_,
+ this.plugin_, this.connectionMode_);
+ this.onConnected_(connectionInfo);
// Initialize any protocol extensions that may have been added by the app.
this.initProtocolExtensions_();
break;
@@ -534,7 +537,7 @@ remoting.DefaultSessionConnectorFactory = function() {};
/**
* @param {HTMLElement} clientContainer Container element for the client view.
- * @param {function(remoting.ClientSession):void} onConnected Callback on
+ * @param {function(remoting.ConnectionInfo):void} onConnected Callback on
* success.
* @param {function(!remoting.Error):void} onError Callback on error.
* @param {function(string, string):boolean} appProtocolExtensionHandler The
« no previous file with comments | « remoting/webapp/crd/js/session_connector.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698