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

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

Issue 1370283004: [Chromoting] Remote Assistance in Public Session. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@PublicSession
Patch Set: Rebase Created 5 years, 3 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/host_screen.js ('k') | remoting/webapp/crd/js/public_session_main.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/crd/js/it2me_host_facade.js
diff --git a/remoting/webapp/crd/js/it2me_host_facade.js b/remoting/webapp/crd/js/it2me_host_facade.js
index c9167c84905941f460c73c757468cea0ec2b06db..0d517ad944f7985ac2fb9a6b8220dd7a2110017d 100644
--- a/remoting/webapp/crd/js/it2me_host_facade.js
+++ b/remoting/webapp/crd/js/it2me_host_facade.js
@@ -63,6 +63,9 @@ remoting.It2MeHostFacade = function() {
this.onNatPolicyChanged_ = function() {};
/** @private */
+ this.hostVersion_ = '';
+
+ /** @private */
this.debugMessageHandler_ =
new remoting.NativeMessageHostDebugMessageHandler();
@@ -205,6 +208,14 @@ remoting.It2MeHostFacade.prototype.getClient = function() {
};
/**
+ * @return {string}
+ */
+remoting.It2MeHostFacade.prototype.getHostVersion = function() {
+ return this.hostVersion_;
+};
+
+
+/**
* Handler for incoming messages.
*
* @param {Object} message The received message.
@@ -221,8 +232,8 @@ remoting.It2MeHostFacade.prototype.onIncomingMessage_ =
switch (type) {
case 'helloResponse':
- var version = base.getStringAttr(message, 'version');
- console.log('Host version: ', version);
+ this.hostVersion_ = base.getStringAttr(message, 'version');
+ console.log('Host version: ', this.hostVersion_);
this.initialized_ = true;
// A "hello" request is sent immediately after the native messaging host
// is started. We can proceed to the next task once we receive the
« no previous file with comments | « remoting/webapp/crd/js/host_screen.js ('k') | remoting/webapp/crd/js/public_session_main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698