Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / remoting / webapp / base / js / activity.js
blob206073cd0938879d8e586356c7b1853d7c0710ff
1 // Copyright 2015 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.
5 /** @suppress {duplicate} */
6 var remoting = remoting || {};
8 (function() {
10 'use strict';
12 /**
13 * An Activity is a responsible for
14 * 1. Showing the appropriate UX to establish a connection with the host and
15 * create a remoting.ClientSession.
16 * 2. Handling connection failures and retrying if necessary.
17 * 3. Responding to session state changes and showing UX if necessary.
19 * @interface
20 * @extends {base.Disposable}
21 * @extends {remoting.ClientSession.EventHandler}
23 remoting.Activity = function() {};
25 /**
26 * Starts a new connection.
28 * @return {void}
30 remoting.Activity.prototype.start = function() {};
32 /**
33 * Cancels or disconnects a remote connection.
34 * @return {void}
36 remoting.Activity.prototype.stop = function() {};
38 })();