Index: remoting/webapp/host_it2me_dispatcher.js |
diff --git a/remoting/webapp/host_it2me_dispatcher.js b/remoting/webapp/host_it2me_dispatcher.js |
index f2a7e90c146d9d46d5ac4a4020238ec2bbfc9e31..3c2fce7762380181038c9bc5921a916ed42dfc74 100644 |
--- a/remoting/webapp/host_it2me_dispatcher.js |
+++ b/remoting/webapp/host_it2me_dispatcher.js |
@@ -56,6 +56,8 @@ remoting.HostIt2MeDispatcher.prototype.initialize = |
function onNativeMessagingStarted() { |
console.log('Native Messaging supported.'); |
+ |
+ that.npapiHost_ = null; |
onDispatcherInitialized(); |
} |
@@ -90,6 +92,20 @@ remoting.HostIt2MeDispatcher.prototype.onNativeMessagingError_ = |
} |
/** |
+ * @return {boolean} |
+ */ |
+remoting.HostIt2MeDispatcher.prototype.usingNpapi = function() { |
+ return this.npapiHost_ != null; |
+} |
+ |
+/** |
+ * @return {remoting.HostPlugin} |
+ */ |
+remoting.HostIt2MeDispatcher.prototype.getNpapiHost = function() { |
+ return this.npapiHost_; |
+} |
+ |
+/** |
* @param {string} email The user's email address. |
* @param {string} authServiceWithToken Concatenation of the auth service |
* (e.g. oauth2) and the access token. |