OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 */ | 104 */ |
105 this.primaryConnectTimerId_ = 0; | 105 this.primaryConnectTimerId_ = 0; |
106 | 106 |
107 /** | 107 /** |
108 * @type {remoting.LogToServer} | 108 * @type {remoting.LogToServer} |
109 * @private | 109 * @private |
110 */ | 110 */ |
111 this.logToServer_ = null; | 111 this.logToServer_ = null; |
112 | 112 |
113 /** | 113 /** |
114 * @type {Array.<{strategyType: remoting.SignalStrategy.Type, | 114 * @type {Array<{strategyType: remoting.SignalStrategy.Type, |
115 progress: remoting.FallbackSignalStrategy.Progress, | 115 progress: remoting.FallbackSignalStrategy.Progress, |
116 * elapsed: number}>} | 116 * elapsed: number}>} |
117 */ | 117 */ |
118 this.connectionSetupResults_ = []; | 118 this.connectionSetupResults_ = []; |
119 | 119 |
120 /** | 120 /** |
121 * @type {number} | 121 * @type {number} |
122 * @private | 122 * @private |
123 */ | 123 */ |
124 this.startTime_ = 0; | 124 this.startTime_ = 0; |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 progress); | 391 progress); |
392 this.connectionSetupResults_.push({ | 392 this.connectionSetupResults_.push({ |
393 'strategyType': strategy.getType(), | 393 'strategyType': strategy.getType(), |
394 'progress': progress, | 394 'progress': progress, |
395 'elapsed': new Date().getTime() - this.startTime_ | 395 'elapsed': new Date().getTime() - this.startTime_ |
396 }); | 396 }); |
397 if (this.logToServer_) { | 397 if (this.logToServer_) { |
398 this.sendConnectionSetupResultsInternal_(); | 398 this.sendConnectionSetupResultsInternal_(); |
399 } | 399 } |
400 }; | 400 }; |
OLD | NEW |