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

Unified Diff: remoting/webapp/base/js/application.js

Issue 1010053002: [Webapp Refactor] Implements remoting.ConnectionInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: remoting/webapp/base/js/application.js
diff --git a/remoting/webapp/base/js/application.js b/remoting/webapp/base/js/application.js
index 74817f78064b833973c992452057351421d2dcc2..8ffef44657bb10d867f2c8cdea065ed883fd914c 100644
--- a/remoting/webapp/base/js/application.js
+++ b/remoting/webapp/base/js/application.js
@@ -115,18 +115,18 @@ remoting.Application.prototype.disconnect = function() {
/**
* Called when a new session has been connected.
*
- * @param {remoting.ClientSession} clientSession
+ * @param {remoting.ConnectionInfo} connectionInfo
* @return {void} Nothing.
*/
-remoting.Application.prototype.onConnected = function(clientSession) {
+remoting.Application.prototype.onConnected = function(connectionInfo) {
this.sessionConnectedHooks_ = new base.Disposables(
- new base.EventHook(
- clientSession, 'stateChanged', this.onClientStateChange_.bind(this)),
+ new base.EventHook(connectionInfo.session(), 'stateChanged',
+ this.onClientStateChange_.bind(this)),
new base.RepeatingTimer(this.updateStatistics_.bind(this), 1000)
);
remoting.clipboard.startSession();
- this.delegate_.handleConnected(clientSession);
+ this.delegate_.handleConnected(connectionInfo);
};
/**
@@ -300,11 +300,11 @@ remoting.Application.Delegate.prototype.getDefaultRemapKeys = function() {};
/**
* Called when a new session has been connected.
*
- * @param {remoting.ClientSession} clientSession
+ * @param {remoting.ConnectionInfo} connectionInfo
* @return {void} Nothing.
*/
remoting.Application.Delegate.prototype.handleConnected = function(
- clientSession) {};
+ connectionInfo) {};
/**
* Called when the current session has been disconnected.

Powered by Google App Engine
This is Rietveld 408576698