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

Side by Side Diff: remoting/webapp/base/js/application.js

Issue 1097133002: [Webapp Refactor] Remove remoting.SessionConnector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix merge conflicts 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 Application functionality. 7 * Interface abstracting the Application 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 * @type {base.EventSourceImpl} An event source object for handling global 16 * @type {base.EventSourceImpl} An event source object for handling global
17 * events. This is an interim hack. Eventually, we should move 17 * events. This is an interim hack. Eventually, we should move
18 * functionalities away from the remoting namespace and into smaller objects. 18 * functionalities away from the remoting namespace and into smaller objects.
19 */ 19 */
20 remoting.testEvents; 20 remoting.testEvents;
21 21
22 /** 22 /**
23 * @constructor 23 * @constructor
24 */ 24 */
25 remoting.Application = function() { 25 remoting.Application = function() {
26 // Create global factories. 26 // Create global factories.
27 remoting.ClientPlugin.factory = new remoting.DefaultClientPluginFactory(); 27 remoting.ClientPlugin.factory = new remoting.DefaultClientPluginFactory();
28 remoting.SessionConnector.factory =
29 new remoting.DefaultSessionConnectorFactory();
30 28
31 /** @protected {remoting.Application.Mode} */ 29 /** @protected {remoting.Application.Mode} */
32 this.connectionMode_ = remoting.Application.Mode.ME2ME; 30 this.connectionMode_ = remoting.Application.Mode.ME2ME;
33 }; 31 };
34 32
35 /** 33 /**
36 * The current application mode (IT2Me, Me2Me or AppRemoting). 34 * The current application mode (IT2Me, Me2Me or AppRemoting).
37 * 35 *
38 * TODO(kelvinp): Remove this when Me2Me and It2Me are abstracted into its 36 * TODO(kelvinp): Remove this when Me2Me and It2Me are abstracted into its
39 * own flow objects. 37 * own flow objects.
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 */ 220 */
223 remoting.ApplicationInterface.prototype.startApplication_ = function(token) {}; 221 remoting.ApplicationInterface.prototype.startApplication_ = function(token) {};
224 222
225 /** 223 /**
226 * Close down the application before exiting. 224 * Close down the application before exiting.
227 */ 225 */
228 remoting.ApplicationInterface.prototype.exitApplication_ = function() {}; 226 remoting.ApplicationInterface.prototype.exitApplication_ = function() {};
229 227
230 /** @type {remoting.Application} */ 228 /** @type {remoting.Application} */
231 remoting.app = null; 229 remoting.app = null;
OLDNEW
« no previous file with comments | « remoting/webapp/app_remoting/js/app_remoting_activity.js ('k') | remoting/webapp/base/js/protocol_extension.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698