| 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 * A class of server log entries. | 7 * A class of server log entries. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 'use strict'; | 10 'use strict'; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 case remoting.ClientSession.ConnectionError.NONE: | 78 case remoting.ClientSession.ConnectionError.NONE: |
| 79 return 'none'; | 79 return 'none'; |
| 80 case remoting.ClientSession.ConnectionError.HOST_IS_OFFLINE: | 80 case remoting.ClientSession.ConnectionError.HOST_IS_OFFLINE: |
| 81 return 'host-is-offline'; | 81 return 'host-is-offline'; |
| 82 case remoting.ClientSession.ConnectionError.SESSION_REJECTED: | 82 case remoting.ClientSession.ConnectionError.SESSION_REJECTED: |
| 83 return 'session-rejected'; | 83 return 'session-rejected'; |
| 84 case remoting.ClientSession.ConnectionError.INCOMPATIBLE_PROTOCOL: | 84 case remoting.ClientSession.ConnectionError.INCOMPATIBLE_PROTOCOL: |
| 85 return 'incompatible-protocol'; | 85 return 'incompatible-protocol'; |
| 86 case remoting.ClientSession.ConnectionError.NETWORK_FAILURE: | 86 case remoting.ClientSession.ConnectionError.NETWORK_FAILURE: |
| 87 return 'network-failure'; | 87 return 'network-failure'; |
| 88 case remoting.ClientSession.ConnectionError.OTHER: | |
| 89 return 'other'; | |
| 90 default: | 88 default: |
| 91 return 'unknown-' + connectionError; | 89 return 'unknown-' + connectionError; |
| 92 } | 90 } |
| 93 } | 91 } |
| 94 | 92 |
| 95 /** @private */ | 93 /** @private */ |
| 96 remoting.ServerLogEntry.prototype.KEY_OS_NAME_ = 'os-name'; | 94 remoting.ServerLogEntry.prototype.KEY_OS_NAME_ = 'os-name'; |
| 97 /** @private */ | 95 /** @private */ |
| 98 remoting.ServerLogEntry.prototype.VALUE_OS_NAME_WINDOWS_ = 'Windows'; | 96 remoting.ServerLogEntry.prototype.VALUE_OS_NAME_WINDOWS_ = 'Windows'; |
| 99 /** @private */ | 97 /** @private */ |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 } | 272 } |
| 275 return null; | 273 return null; |
| 276 }; | 274 }; |
| 277 | 275 |
| 278 /** | 276 /** |
| 279 * Adds a field specifying the webapp version to this log entry. | 277 * Adds a field specifying the webapp version to this log entry. |
| 280 */ | 278 */ |
| 281 remoting.ServerLogEntry.prototype.addWebappVersionField = function() { | 279 remoting.ServerLogEntry.prototype.addWebappVersionField = function() { |
| 282 this.set(this.KEY_WEBAPP_VERSION_, chrome.app.getDetails().version); | 280 this.set(this.KEY_WEBAPP_VERSION_, chrome.app.getDetails().version); |
| 283 }; | 281 }; |
| OLD | NEW |