OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 handling creation and teardown of a remoting client session. | 7 * Class handling creation and teardown of a remoting client session. |
8 * | 8 * |
9 * The ClientSession class controls lifetime of the client plugin | 9 * The ClientSession class controls lifetime of the client plugin |
10 * object and provides the plugin with the functionality it needs to | 10 * object and provides the plugin with the functionality it needs to |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 /** @enum {number} */ | 226 /** @enum {number} */ |
227 remoting.ClientSession.Mode = { | 227 remoting.ClientSession.Mode = { |
228 IT2ME: 0, | 228 IT2ME: 0, |
229 ME2ME: 1 | 229 ME2ME: 1 |
230 }; | 230 }; |
231 | 231 |
232 /** | 232 /** |
233 * Type used for performance statistics collected by the plugin. | 233 * Type used for performance statistics collected by the plugin. |
234 * @constructor | 234 * @constructor |
235 */ | 235 */ |
236 remoting.ClientSession.PerfStats = function() {}; | 236 remoting.ClientSession.PerfStats = function() { |
| 237 /** @type {Object.<string>} */ |
| 238 this.channelTypes = {}; |
| 239 }; |
| 240 |
237 /** @type {number} */ | 241 /** @type {number} */ |
238 remoting.ClientSession.PerfStats.prototype.videoBandwidth; | 242 remoting.ClientSession.PerfStats.prototype.videoBandwidth; |
239 /** @type {number} */ | 243 /** @type {number} */ |
240 remoting.ClientSession.PerfStats.prototype.videoFrameRate; | 244 remoting.ClientSession.PerfStats.prototype.videoFrameRate; |
241 /** @type {number} */ | 245 /** @type {number} */ |
242 remoting.ClientSession.PerfStats.prototype.captureLatency; | 246 remoting.ClientSession.PerfStats.prototype.captureLatency; |
243 /** @type {number} */ | 247 /** @type {number} */ |
244 remoting.ClientSession.PerfStats.prototype.encodeLatency; | 248 remoting.ClientSession.PerfStats.prototype.encodeLatency; |
245 /** @type {number} */ | 249 /** @type {number} */ |
246 remoting.ClientSession.PerfStats.prototype.decodeLatency; | 250 remoting.ClientSession.PerfStats.prototype.decodeLatency; |
(...skipping 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1312 * Sends a clipboard item to the host. | 1316 * Sends a clipboard item to the host. |
1313 * | 1317 * |
1314 * @param {string} mimeType The MIME type of the clipboard item. | 1318 * @param {string} mimeType The MIME type of the clipboard item. |
1315 * @param {string} item The clipboard item. | 1319 * @param {string} item The clipboard item. |
1316 */ | 1320 */ |
1317 remoting.ClientSession.prototype.sendClipboardItem = function(mimeType, item) { | 1321 remoting.ClientSession.prototype.sendClipboardItem = function(mimeType, item) { |
1318 if (!this.plugin_) | 1322 if (!this.plugin_) |
1319 return; | 1323 return; |
1320 this.plugin_.sendClipboardItem(mimeType, item) | 1324 this.plugin_.sendClipboardItem(mimeType, item) |
1321 }; | 1325 }; |
OLD | NEW |