| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 * @param {HTMLElement} clientContainer Container element for the client view. | 97 * @param {HTMLElement} clientContainer Container element for the client view. |
| 98 * @param {function(remoting.ClientSession):void} onConnected Callback on | 98 * @param {function(remoting.ClientSession):void} onConnected Callback on |
| 99 * success. | 99 * success. |
| 100 * @param {function(remoting.Error):void} onError Callback on error. | 100 * @param {function(remoting.Error):void} onError Callback on error. |
| 101 * @param {function(string, string):boolean} onExtensionMessage The handler for | 101 * @param {function(string, string):boolean} onExtensionMessage The handler for |
| 102 * protocol extension messages. Returns true if a message is recognized; | 102 * protocol extension messages. Returns true if a message is recognized; |
| 103 * false otherwise. | 103 * false otherwise. |
| 104 * @return {remoting.SessionConnector} | 104 * @return {remoting.SessionConnector} |
| 105 */ | 105 */ |
| 106 remoting.SessionConnectorFactory.prototype.createConnector = | 106 remoting.SessionConnectorFactory.prototype.createConnector = |
| 107 // TODO(garykac): Can onExtensionMessage be removed from here? It's only |
| 108 // needed to pass to the ClientSession. Investigate why ClientSession |
| 109 // needs this. |
| 107 function(clientContainer, onConnected, onError, onExtensionMessage) {}; | 110 function(clientContainer, onConnected, onError, onExtensionMessage) {}; |
| 108 | 111 |
| 109 /** | 112 /** |
| 110 * @type {remoting.SessionConnectorFactory} | 113 * @type {remoting.SessionConnectorFactory} |
| 111 */ | 114 */ |
| 112 remoting.SessionConnector.factory = null; | 115 remoting.SessionConnector.factory = null; |
| OLD | NEW |