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

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

Issue 1012073006: [Webapp Refactor] Removes the client plugin on disconnect. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reviewer's feedback Created 5 years, 9 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 * @return {string} 103 * @return {string}
104 */ 104 */
105 remoting.SessionConnector.prototype.getHostId = function() {}; 105 remoting.SessionConnector.prototype.getHostId = function() {};
106 106
107 /** 107 /**
108 * @param {remoting.ProtocolExtension} extension 108 * @param {remoting.ProtocolExtension} extension
109 */ 109 */
110 remoting.SessionConnector.prototype.registerProtocolExtension = 110 remoting.SessionConnector.prototype.registerProtocolExtension =
111 function(extension) {}; 111 function(extension) {};
112 112
113 /**
114 * Closes the session and removes the plugin element.
115 */
116 remoting.SessionConnector.prototype.closeSession = function() {};
113 117
114 /** 118 /**
115 * @interface 119 * @interface
116 */ 120 */
117 remoting.SessionConnectorFactory = function() {}; 121 remoting.SessionConnectorFactory = function() {};
118 122
119 /** 123 /**
120 * @param {HTMLElement} clientContainer Container element for the client view. 124 * @param {HTMLElement} clientContainer Container element for the client view.
121 * @param {function(remoting.ConnectionInfo):void} onConnected Callback on 125 * @param {function(remoting.ConnectionInfo):void} onConnected Callback on
122 * success. 126 * success.
123 * @param {function(!remoting.Error):void} onError Callback on error. 127 * @param {function(!remoting.Error):void} onError Callback on error.
124 * @param {function(!remoting.Error):void} onConnectionFailed Callback for when 128 * @param {function(!remoting.Error):void} onConnectionFailed Callback for when
125 * the connection fails. 129 * the connection fails.
126 * @param {Array<string>} requiredCapabilities Connector capabilities 130 * @param {Array<string>} requiredCapabilities Connector capabilities
127 * required by this application. 131 * required by this application.
128 * @param {string} defaultRemapKeys The default set of key mappings to use 132 * @param {string} defaultRemapKeys The default set of key mappings to use
129 * in the client session. 133 * in the client session.
130 * @return {remoting.SessionConnector} 134 * @return {remoting.SessionConnector}
131 */ 135 */
132 remoting.SessionConnectorFactory.prototype.createConnector = 136 remoting.SessionConnectorFactory.prototype.createConnector =
133 function(clientContainer, onConnected, onError, 137 function(clientContainer, onConnected, onError,
134 onConnectionFailed, requiredCapabilities, defaultRemapKeys) {}; 138 onConnectionFailed, requiredCapabilities, defaultRemapKeys) {};
135 139
136 /** 140 /**
137 * @type {remoting.SessionConnectorFactory} 141 * @type {remoting.SessionConnectorFactory}
138 */ 142 */
139 remoting.SessionConnector.factory = null; 143 remoting.SessionConnector.factory = null;
OLDNEW
« no previous file with comments | « remoting/webapp/crd/js/client_session.js ('k') | remoting/webapp/crd/js/session_connector_impl.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698