| 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 'use strict'; | 5 'use strict'; |
| 6 | 6 |
| 7 /** @suppress {duplicate} */ | 7 /** @suppress {duplicate} */ |
| 8 var remoting = remoting || {}; | 8 var remoting = remoting || {}; |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 /** @private */ | 30 /** @private */ |
| 31 this.socketId_ = -1; | 31 this.socketId_ = -1; |
| 32 /** @private */ | 32 /** @private */ |
| 33 this.state_ = remoting.SignalStrategy.State.NOT_CONNECTED; | 33 this.state_ = remoting.SignalStrategy.State.NOT_CONNECTED; |
| 34 /** @private */ | 34 /** @private */ |
| 35 this.readPending_ = false; | 35 this.readPending_ = false; |
| 36 /** @private */ | 36 /** @private */ |
| 37 this.sendPending_ = false; | 37 this.sendPending_ = false; |
| 38 /** @private */ | 38 /** @private */ |
| 39 this.startTlsPending_ = false; | 39 this.startTlsPending_ = false; |
| 40 /** @type {Array.<ArrayBuffer>} @private */ | 40 /** @type {Array<ArrayBuffer>} @private */ |
| 41 this.sendQueue_ = []; | 41 this.sendQueue_ = []; |
| 42 /** @type {remoting.XmppLoginHandler} @private*/ | 42 /** @type {remoting.XmppLoginHandler} @private*/ |
| 43 this.loginHandler_ = null; | 43 this.loginHandler_ = null; |
| 44 /** @type {remoting.XmppStreamParser} @private*/ | 44 /** @type {remoting.XmppStreamParser} @private*/ |
| 45 this.streamParser_ = null; | 45 this.streamParser_ = null; |
| 46 /** @private */ | 46 /** @private */ |
| 47 this.jid_ = ''; | 47 this.jid_ = ''; |
| 48 /** @private */ | 48 /** @private */ |
| 49 this.error_ = remoting.Error.NONE; | 49 this.error_ = remoting.Error.NONE; |
| 50 /** @private */ | 50 /** @private */ |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 /** | 481 /** |
| 482 * @param {remoting.SignalStrategy.State} newState | 482 * @param {remoting.SignalStrategy.State} newState |
| 483 * @private | 483 * @private |
| 484 */ | 484 */ |
| 485 remoting.XmppConnection.prototype.setState_ = function(newState) { | 485 remoting.XmppConnection.prototype.setState_ = function(newState) { |
| 486 if (this.state_ != newState) { | 486 if (this.state_ != newState) { |
| 487 this.state_ = newState; | 487 this.state_ = newState; |
| 488 this.onStateChangedCallback_(this.state_); | 488 this.onStateChangedCallback_(this.state_); |
| 489 } | 489 } |
| 490 }; | 490 }; |
| OLD | NEW |