Chromium Code Reviews| 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; |
|
Jamie
2014/05/20 21:43:06
Is this needed because the dispatcher goes from NP
|
| 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_; |
|
Jamie
2014/05/20 21:43:06
As before, if this is going to be long-lived, let'
weitao
2014/05/20 22:09:13
I do plan to remove this in the subsequent CL's wh
|
| +} |
| + |
| +/** |
| * @param {string} email The user's email address. |
| * @param {string} authServiceWithToken Concatenation of the auth service |
| * (e.g. oauth2) and the access token. |