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

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

Issue 981083002: [Chromoting] Move ownership of ClientPlugin into SessionConnector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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';
11 11
12 /** @suppress {duplicate} */ 12 /** @suppress {duplicate} */
13 var remoting = remoting || {}; 13 var remoting = remoting || {};
14 14
15 /** 15 /**
16 * @interface 16 * @interface
17 */ 17 */
18 remoting.SessionConnector = function() {}; 18 remoting.SessionConnector = function() {};
19 19
20 /** 20 /**
21 * Reset the per-connection state so that the object can be re-used for a 21 * Reset the per-connection state so that the object can be re-used for a
22 * second connection. Note the none of the shared WCS state is reset. 22 * second connection. Note the none of the shared WCS state is reset.
23 */ 23 */
24 remoting.SessionConnector.prototype.reset = function() {}; 24 remoting.SessionConnector.prototype.resetConnection = function() {};
25 25
26 /** 26 /**
27 * Initiate a Me2Me connection. 27 * Initiate a Me2Me connection.
28 * 28 *
29 * @param {remoting.Host} host The Me2Me host to which to connect. 29 * @param {remoting.Host} host The Me2Me host to which to connect.
30 * @param {function(boolean, function(string):void):void} fetchPin Function to 30 * @param {function(boolean, function(string):void):void} fetchPin Function to
31 * interactively obtain the PIN from the user. 31 * interactively obtain the PIN from the user.
32 * @param {function(string, string, string, 32 * @param {function(string, string, string,
33 * function(string, string): void): void} 33 * function(string, string): void): void}
34 * fetchThirdPartyToken Function to obtain a token from a third party 34 * fetchThirdPartyToken Function to obtain a token from a third party
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // TODO(garykac): Can onExtensionMessage be removed from here? It's only 134 // TODO(garykac): Can onExtensionMessage be removed from here? It's only
135 // needed to pass to the ClientSession. Investigate why ClientSession 135 // needed to pass to the ClientSession. Investigate why ClientSession
136 // needs this. 136 // needs this.
137 function(clientContainer, onConnected, onError, onExtensionMessage, 137 function(clientContainer, onConnected, onError, onExtensionMessage,
138 onConnectionFailed, requiredCapabilities, defaultRemapKeys) {}; 138 onConnectionFailed, requiredCapabilities, defaultRemapKeys) {};
139 139
140 /** 140 /**
141 * @type {remoting.SessionConnectorFactory} 141 * @type {remoting.SessionConnectorFactory}
142 */ 142 */
143 remoting.SessionConnector.factory = null; 143 remoting.SessionConnector.factory = null;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698