| 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 * Module for sending log entries to the server. | 7 * Module for sending log entries to the server. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 'use strict'; | 10 'use strict'; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 /** @private */ | 35 /** @private */ |
| 36 this.authTotalTime_ = 0; | 36 this.authTotalTime_ = 0; |
| 37 /** @private {string} */ | 37 /** @private {string} */ |
| 38 this.hostVersion_ = ''; | 38 this.hostVersion_ = ''; |
| 39 /** @private */ | 39 /** @private */ |
| 40 this.logEntryMode_ = remoting.ServerLogEntry.VALUE_MODE_UNKNOWN; | 40 this.logEntryMode_ = remoting.ServerLogEntry.VALUE_MODE_UNKNOWN; |
| 41 /** @private */ | 41 /** @private */ |
| 42 this.role_ = opt_isHost ? 'host' : 'client'; | 42 this.role_ = opt_isHost ? 'host' : 'client'; |
| 43 | 43 |
| 44 this.setSessionId(); | 44 this.setSessionId(); |
| 45 signalStrategy.sendConnectionSetupResults(this); | |
| 46 }; | 45 }; |
| 47 | 46 |
| 48 // Constants used for generating a session ID. | 47 // Constants used for generating a session ID. |
| 49 /** @private */ | 48 /** @private */ |
| 50 remoting.LogToServer.SESSION_ID_ALPHABET_ = | 49 remoting.LogToServer.SESSION_ID_ALPHABET_ = |
| 51 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890'; | 50 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890'; |
| 52 /** @private */ | 51 /** @private */ |
| 53 remoting.LogToServer.SESSION_ID_LEN_ = 20; | 52 remoting.LogToServer.SESSION_ID_LEN_ = 20; |
| 54 | 53 |
| 55 /** | 54 /** |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 this.authTotalTime_ = totalTime; | 278 this.authTotalTime_ = totalTime; |
| 280 }; | 279 }; |
| 281 | 280 |
| 282 /** | 281 /** |
| 283 * @param {string} hostVersion Version of the host for current session. | 282 * @param {string} hostVersion Version of the host for current session. |
| 284 * @return {void} Nothing. | 283 * @return {void} Nothing. |
| 285 */ | 284 */ |
| 286 remoting.LogToServer.prototype.setHostVersion = function(hostVersion) { | 285 remoting.LogToServer.prototype.setHostVersion = function(hostVersion) { |
| 287 this.hostVersion_ = hostVersion; | 286 this.hostVersion_ = hostVersion; |
| 288 }; | 287 }; |
| OLD | NEW |