Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: remoting/webapp/crd/js/session_connector.js

Issue 1067133002: Move ProtocolExtensionManager from SessionConnector into its own class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 remoting.SessionConnector.prototype.cancel = function() {}; 91 remoting.SessionConnector.prototype.cancel = function() {};
92 92
93 /** 93 /**
94 * Get host ID. 94 * Get host ID.
95 * 95 *
96 * @return {string} 96 * @return {string}
97 */ 97 */
98 remoting.SessionConnector.prototype.getHostId = function() {}; 98 remoting.SessionConnector.prototype.getHostId = function() {};
99 99
100 /** 100 /**
101 * @param {remoting.ProtocolExtension} extension
102 */
103 remoting.SessionConnector.prototype.registerProtocolExtension =
104 function(extension) {};
105
106 /**
107 * Closes the session and removes the plugin element. 101 * Closes the session and removes the plugin element.
108 */ 102 */
109 remoting.SessionConnector.prototype.closeSession = function() {}; 103 remoting.SessionConnector.prototype.closeSession = function() {};
110 104
111 /** 105 /**
112 * @interface 106 * @interface
113 */ 107 */
114 remoting.SessionConnectorFactory = function() {}; 108 remoting.SessionConnectorFactory = function() {};
115 109
116 /** 110 /**
117 * @param {HTMLElement} clientContainer Container element for the client view. 111 * @param {HTMLElement} clientContainer Container element for the client view.
118 * @param {function(remoting.ConnectionInfo):void} onConnected Callback on 112 * @param {function(remoting.ConnectionInfo):void} onConnected Callback on
119 * success. 113 * success.
120 * @param {function(!remoting.Error):void} onError Callback on error. 114 * @param {function(!remoting.Error):void} onError Callback on error.
121 * @param {function(!remoting.Error):void} onConnectionFailed Callback for when 115 * @param {function(!remoting.Error):void} onConnectionFailed Callback for when
122 * the connection fails. 116 * the connection fails.
123 * @param {Array<string>} requiredCapabilities Connector capabilities 117 * @param {Array<string>} requiredCapabilities Connector capabilities
124 * required by this application. 118 * required by this application.
125 * @return {remoting.SessionConnector} 119 * @return {remoting.SessionConnector}
126 */ 120 */
127 remoting.SessionConnectorFactory.prototype.createConnector = 121 remoting.SessionConnectorFactory.prototype.createConnector =
128 function(clientContainer, onConnected, onError, 122 function(clientContainer, onConnected, onError,
129 onConnectionFailed, requiredCapabilities) {}; 123 onConnectionFailed, requiredCapabilities) {};
130 124
131 /** 125 /**
132 * @type {remoting.SessionConnectorFactory} 126 * @type {remoting.SessionConnectorFactory}
133 */ 127 */
134 remoting.SessionConnector.factory = null; 128 remoting.SessionConnector.factory = null;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698