| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @fileoverview | 6 * @fileoverview |
| 7 * Class to communicate with the host daemon via Native Messaging. | 7 * Class to communicate with the host daemon via Native Messaging. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 'use strict'; | 10 'use strict'; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 * @private | 21 * @private |
| 22 */ | 22 */ |
| 23 this.nextId_ = 0; | 23 this.nextId_ = 0; |
| 24 | 24 |
| 25 /** | 25 /** |
| 26 * @type {Object.<number, remoting.HostDaemonFacade.PendingReply>} | 26 * @type {Object.<number, remoting.HostDaemonFacade.PendingReply>} |
| 27 * @private | 27 * @private |
| 28 */ | 28 */ |
| 29 this.pendingReplies_ = {}; | 29 this.pendingReplies_ = {}; |
| 30 | 30 |
| 31 /** @type {?chrome.extension.Port} @private */ | 31 /** @type {?chrome.runtime.Port} @private */ |
| 32 this.port_ = null; | 32 this.port_ = null; |
| 33 | 33 |
| 34 /** @type {string} @private */ | 34 /** @type {string} @private */ |
| 35 this.version_ = ''; | 35 this.version_ = ''; |
| 36 | 36 |
| 37 /** @type {Array.<remoting.HostController.Feature>} @private */ | 37 /** @type {Array.<remoting.HostController.Feature>} @private */ |
| 38 this.supportedFeatures_ = []; | 38 this.supportedFeatures_ = []; |
| 39 | 39 |
| 40 /** @type {Array.<function(boolean):void>} @private */ | 40 /** @type {Array.<function(boolean):void>} @private */ |
| 41 this.afterInitializationTasks_ = []; | 41 this.afterInitializationTasks_ = []; |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 * @param {function(remoting.Error):void} onError Callback to call on error. | 518 * @param {function(remoting.Error):void} onError Callback to call on error. |
| 519 * @return {void} Nothing. | 519 * @return {void} Nothing. |
| 520 */ | 520 */ |
| 521 remoting.HostDaemonFacade.prototype.getCredentialsFromAuthCode = | 521 remoting.HostDaemonFacade.prototype.getCredentialsFromAuthCode = |
| 522 function(authorizationCode, onDone, onError) { | 522 function(authorizationCode, onDone, onError) { |
| 523 this.postMessage_({ | 523 this.postMessage_({ |
| 524 type: 'getCredentialsFromAuthCode', | 524 type: 'getCredentialsFromAuthCode', |
| 525 authorizationCode: authorizationCode | 525 authorizationCode: authorizationCode |
| 526 }, onDone, onError); | 526 }, onDone, onError); |
| 527 }; | 527 }; |
| OLD | NEW |