Chromium Code Reviews| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 88 remoting.SessionConnector.prototype.getHostId = function() {}; | 88 remoting.SessionConnector.prototype.getHostId = function() {}; |
| 89 | 89 |
| 90 | 90 |
| 91 /** | 91 /** |
| 92 * @interface | 92 * @interface |
| 93 */ | 93 */ |
| 94 remoting.SessionConnectorFactory = function() {}; | 94 remoting.SessionConnectorFactory = function() {}; |
| 95 | 95 |
| 96 /** | 96 /** |
| 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 {remoting.Application} app The main application. |
| 99 * success. | |
| 100 * @param {function(remoting.Error):void} onError Callback on error. | |
| 101 * @param {function(string, string):boolean} onExtensionMessage The handler for | |
| 102 * protocol extension messages. Returns true if a message is recognized; | |
| 103 * false otherwise. | |
| 104 * @return {remoting.SessionConnector} | 99 * @return {remoting.SessionConnector} |
| 105 */ | 100 */ |
| 106 remoting.SessionConnectorFactory.prototype.createConnector = | 101 remoting.SessionConnectorFactory.prototype.createConnector = |
| 107 function(clientContainer, onConnected, onError, onExtensionMessage) {}; | 102 function(clientContainer, app) {}; |
|
Jamie
2014/12/06 00:09:24
I preferred the previous implementation where onCo
garykac
2014/12/06 01:39:33
Done.
| |
| 108 | 103 |
| 109 /** | 104 /** |
| 110 * @type {remoting.SessionConnectorFactory} | 105 * @type {remoting.SessionConnectorFactory} |
| 111 */ | 106 */ |
| 112 remoting.SessionConnector.factory = null; | 107 remoting.SessionConnector.factory = null; |
| OLD | NEW |