OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 /** | |
6 * @fileoverview | |
7 * Interface abstracting the SessionConnector functionality. | |
8 */ | |
9 | |
10 'use strict'; | |
11 | |
12 /** @suppress {duplicate} */ | |
13 var remoting = remoting || {}; | |
14 | |
15 /** | |
16 * @interface | |
17 */ | |
18 remoting.SessionConnector = function() {}; | |
19 | |
20 /** | |
21 * Initiates a remote connection. | |
22 * | |
23 * @param {remoting.Application.Mode} mode | |
24 * @param {remoting.Host} host | |
25 * @param {remoting.CredentialsProvider} credentialsProvider | |
26 * @param {boolean=} opt_suppressOfflineError Suppress the host offline error | |
27 * as we use stale JID's when initiating a Me2Me. This parameter will be | |
28 * removed when we get rid of sessionConnector altogether in a future CL. | |
29 * @return {void} Nothing. | |
30 */ | |
31 remoting.SessionConnector.prototype.connect = | |
32 function(mode, host, credentialsProvider, opt_suppressOfflineError) {}; | |
33 | |
34 /** | |
35 * @interface | |
36 */ | |
37 remoting.SessionConnectorFactory = function() {}; | |
38 | |
39 /** | |
40 * @param {HTMLElement} clientContainer Container element for the client view. | |
41 * @param {Array<string>} requiredCapabilities Connector capabilities | |
42 * required by this application. | |
43 * @param {remoting.ClientSession.EventHandler} handler | |
44 * @return {remoting.SessionConnector} | |
45 */ | |
46 remoting.SessionConnectorFactory.prototype.createConnector = | |
47 function(clientContainer, requiredCapabilities, handler) {}; | |
48 | |
49 /** | |
50 * @type {remoting.SessionConnectorFactory} | |
51 */ | |
52 remoting.SessionConnector.factory = null; | |
OLD | NEW |