Chromium Code Reviews| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 76 UNKNOWN: 0, | 76 UNKNOWN: 0, |
| 77 CONNECTING: 1, | 77 CONNECTING: 1, |
| 78 INITIALIZING: 2, | 78 INITIALIZING: 2, |
| 79 CONNECTED: 3, | 79 CONNECTED: 3, |
| 80 CLOSED: 4, | 80 CLOSED: 4, |
| 81 FAILED: 5 | 81 FAILED: 5 |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 /** @enum {number} */ | 84 /** @enum {number} */ |
| 85 remoting.ClientSession.ConnectionError = { | 85 remoting.ClientSession.ConnectionError = { |
| 86 UNKNOWN: -1, | |
|
simonmorris
2012/03/02 00:23:42
Also update the switch(connectionError) statement
Sergey Ulanov
2012/03/02 00:38:13
Done.
| |
| 86 NONE: 0, | 87 NONE: 0, |
| 87 HOST_IS_OFFLINE: 1, | 88 HOST_IS_OFFLINE: 1, |
| 88 SESSION_REJECTED: 2, | 89 SESSION_REJECTED: 2, |
| 89 INCOMPATIBLE_PROTOCOL: 3, | 90 INCOMPATIBLE_PROTOCOL: 3, |
| 90 NETWORK_FAILURE: 4 | 91 NETWORK_FAILURE: 4 |
| 91 }; | 92 }; |
| 92 | 93 |
| 93 // The mode of this session. | 94 // The mode of this session. |
| 94 /** @enum {number} */ | 95 /** @enum {number} */ |
| 95 remoting.ClientSession.Mode = { | 96 remoting.ClientSession.Mode = { |
| (...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 490 }; | 491 }; |
| 491 | 492 |
| 492 /** | 493 /** |
| 493 * Logs statistics. | 494 * Logs statistics. |
| 494 * | 495 * |
| 495 * @param {remoting.ClientSession.PerfStats} stats | 496 * @param {remoting.ClientSession.PerfStats} stats |
| 496 */ | 497 */ |
| 497 remoting.ClientSession.prototype.logStatistics = function(stats) { | 498 remoting.ClientSession.prototype.logStatistics = function(stats) { |
| 498 this.logToServer.logStatistics(stats, this.mode); | 499 this.logToServer.logStatistics(stats, this.mode); |
| 499 }; | 500 }; |
| OLD | NEW |