OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 * Interface abstracting the SessionConnector functionality. | 7 * Interface abstracting the SessionConnector functionality. |
8 */ | 8 */ |
9 | 9 |
10 'use strict'; | 10 'use strict'; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 /** | 67 /** |
68 * Update the pairing info so that the reconnect function will work correctly. | 68 * Update the pairing info so that the reconnect function will work correctly. |
69 * | 69 * |
70 * @param {string} clientId The paired client id. | 70 * @param {string} clientId The paired client id. |
71 * @param {string} sharedSecret The shared secret. | 71 * @param {string} sharedSecret The shared secret. |
72 */ | 72 */ |
73 remoting.SessionConnector.prototype.updatePairingInfo = | 73 remoting.SessionConnector.prototype.updatePairingInfo = |
74 function(clientId, sharedSecret) {}; | 74 function(clientId, sharedSecret) {}; |
75 | 75 |
76 /** | 76 /** |
77 * Initiate an IT2Me connection. | 77 * Initiates a remote connection. |
78 * | 78 * |
79 * @param {string} accessCode The access code as entered by the user. | 79 * @param {remoting.DesktopConnectedView.Mode} mode |
| 80 * @param {remoting.Host} host |
| 81 * @param {remoting.CredentialsProvider} credentialsProvider |
80 * @return {void} Nothing. | 82 * @return {void} Nothing. |
81 */ | 83 */ |
82 remoting.SessionConnector.prototype.connectIT2Me = | 84 remoting.SessionConnector.prototype.connect = |
83 function(accessCode) {}; | 85 function(mode, host, credentialsProvider) {}; |
84 | 86 |
85 /** | 87 /** |
86 * Reconnect a closed connection. | 88 * Reconnect a closed connection. |
87 * | 89 * |
88 * @return {void} Nothing. | 90 * @return {void} Nothing. |
89 */ | 91 */ |
90 remoting.SessionConnector.prototype.reconnect = function() {}; | 92 remoting.SessionConnector.prototype.reconnect = function() {}; |
91 | 93 |
92 /** | 94 /** |
93 * Cancel a connection-in-progress. | 95 * Cancel a connection-in-progress. |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 // TODO(garykac): Can onExtensionMessage be removed from here? It's only | 136 // TODO(garykac): Can onExtensionMessage be removed from here? It's only |
135 // needed to pass to the ClientSession. Investigate why ClientSession | 137 // needed to pass to the ClientSession. Investigate why ClientSession |
136 // needs this. | 138 // needs this. |
137 function(clientContainer, onConnected, onError, onExtensionMessage, | 139 function(clientContainer, onConnected, onError, onExtensionMessage, |
138 onConnectionFailed, requiredCapabilities, defaultRemapKeys) {}; | 140 onConnectionFailed, requiredCapabilities, defaultRemapKeys) {}; |
139 | 141 |
140 /** | 142 /** |
141 * @type {remoting.SessionConnectorFactory} | 143 * @type {remoting.SessionConnectorFactory} |
142 */ | 144 */ |
143 remoting.SessionConnector.factory = null; | 145 remoting.SessionConnector.factory = null; |
OLD | NEW |