| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 * Session class that handles creation and teardown of a remoting session. | 7 * Session class that handles creation and teardown of a remoting session. |
| 8 * | 8 * |
| 9 * This abstracts a <embed> element and controls the plugin which does the | 9 * This abstracts a <embed> element and controls the plugin which does the |
| 10 * actual remoting work. There should be no UI code inside this class. It | 10 * actual remoting work. There should be no UI code inside this class. It |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 CONNECTION_FAILED: 8 | 54 CONNECTION_FAILED: 8 |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 /** @enum {number} */ | 57 /** @enum {number} */ |
| 58 remoting.ClientSession.ConnectionError = { | 58 remoting.ClientSession.ConnectionError = { |
| 59 NONE: 0, | 59 NONE: 0, |
| 60 HOST_IS_OFFLINE: 1, | 60 HOST_IS_OFFLINE: 1, |
| 61 SESSION_REJECTED: 2, | 61 SESSION_REJECTED: 2, |
| 62 INCOMPATIBLE_PROTOCOL: 3, | 62 INCOMPATIBLE_PROTOCOL: 3, |
| 63 NETWORK_FAILURE: 4, | 63 NETWORK_FAILURE: 4, |
| 64 OTHER: 5, | 64 OTHER: 5 |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 /** | 67 /** |
| 68 * The current state of the session. | 68 * The current state of the session. |
| 69 * @type {remoting.ClientSession.State} | 69 * @type {remoting.ClientSession.State} |
| 70 */ | 70 */ |
| 71 remoting.ClientSession.prototype.state = remoting.ClientSession.State.UNKNOWN; | 71 remoting.ClientSession.prototype.state = remoting.ClientSession.State.UNKNOWN; |
| 72 | 72 |
| 73 /** | 73 /** |
| 74 * The last connection error. Set when state is set to CONNECTION_FAILED. | 74 * The last connection error. Set when state is set to CONNECTION_FAILED. |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 'video_bandwidth': this.plugin.videoBandwidth, | 405 'video_bandwidth': this.plugin.videoBandwidth, |
| 406 'capture_latency': this.plugin.videoCaptureLatency, | 406 'capture_latency': this.plugin.videoCaptureLatency, |
| 407 'encode_latency': this.plugin.videoEncodeLatency, | 407 'encode_latency': this.plugin.videoEncodeLatency, |
| 408 'decode_latency': this.plugin.videoDecodeLatency, | 408 'decode_latency': this.plugin.videoDecodeLatency, |
| 409 'render_latency': this.plugin.videoRenderLatency, | 409 'render_latency': this.plugin.videoRenderLatency, |
| 410 'roundtrip_latency': this.plugin.roundTripLatency | 410 'roundtrip_latency': this.plugin.roundTripLatency |
| 411 }; | 411 }; |
| 412 }; | 412 }; |
| 413 | 413 |
| 414 }()); | 414 }()); |
| OLD | NEW |