| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 * Connect set-up state machine for Me2Me and IT2Me | 7 * Connect set-up state machine for Me2Me and IT2Me |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 'use strict'; | 10 'use strict'; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 /** | 90 /** |
| 91 * Reset the per-connection state so that the object can be re-used for a | 91 * Reset the per-connection state so that the object can be re-used for a |
| 92 * second connection. Note the none of the shared WCS state is reset. | 92 * second connection. Note the none of the shared WCS state is reset. |
| 93 * @private | 93 * @private |
| 94 */ | 94 */ |
| 95 remoting.SessionConnectorImpl.prototype.resetConnection_ = function() { | 95 remoting.SessionConnectorImpl.prototype.resetConnection_ = function() { |
| 96 this.removePlugin_(); | 96 this.removePlugin_(); |
| 97 | 97 |
| 98 // It's OK to initialize these member variables here because the |
| 99 // constructor calls this method. |
| 100 |
| 98 /** @private {remoting.Host} */ | 101 /** @private {remoting.Host} */ |
| 99 this.host_ = null; | 102 this.host_ = null; |
| 100 | 103 |
| 101 /** @private {boolean} */ | 104 /** @private {boolean} */ |
| 102 this.logHostOfflineErrors_ = false; | 105 this.logHostOfflineErrors_ = false; |
| 103 | 106 |
| 104 /** @private {remoting.ClientPlugin} */ | 107 /** @private {remoting.ClientPlugin} */ |
| 105 this.plugin_ = null; | 108 this.plugin_ = null; |
| 106 | 109 |
| 107 /** @private {remoting.ClientSession} */ | 110 /** @private {remoting.ClientSession} */ |
| 108 this.clientSession_ = null; | 111 this.clientSession_ = null; |
| 109 | 112 |
| 110 /** @private {remoting.DesktopConnectedView} */ | 113 /** @private {remoting.DesktopConnectedView} */ |
| 111 this.connectedView_ = null; | 114 this.connectedView_ = null; |
| 112 | 115 |
| 113 /** @private {XMLHttpRequest} */ | |
| 114 this.pendingXhr_ = null; | |
| 115 | |
| 116 /** @private {remoting.CredentialsProvider} */ | 116 /** @private {remoting.CredentialsProvider} */ |
| 117 this.credentialsProvider_ = null; | 117 this.credentialsProvider_ = null; |
| 118 | 118 |
| 119 /** @private {Object<string,remoting.ProtocolExtension>} */ | 119 /** @private {Object<string,remoting.ProtocolExtension>} */ |
| 120 this.protocolExtensions_ = {}; | 120 this.protocolExtensions_ = {}; |
| 121 }; | 121 }; |
| 122 | 122 |
| 123 /** | 123 /** |
| 124 * Initiate a Me2Me connection. | 124 * Initiate a Me2Me connection. |
| 125 * | 125 * |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 554 function(clientContainer, onConnected, onError, | 554 function(clientContainer, onConnected, onError, |
| 555 appProtocolExtensionHandler, | 555 appProtocolExtensionHandler, |
| 556 onConnectionFailed, requiredCapabilities, defaultRemapKeys) { | 556 onConnectionFailed, requiredCapabilities, defaultRemapKeys) { |
| 557 return new remoting.SessionConnectorImpl(clientContainer, onConnected, | 557 return new remoting.SessionConnectorImpl(clientContainer, onConnected, |
| 558 onError, | 558 onError, |
| 559 appProtocolExtensionHandler, | 559 appProtocolExtensionHandler, |
| 560 onConnectionFailed, | 560 onConnectionFailed, |
| 561 requiredCapabilities, | 561 requiredCapabilities, |
| 562 defaultRemapKeys); | 562 defaultRemapKeys); |
| 563 }; | 563 }; |
| OLD | NEW |