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

Side by Side Diff: remoting/webapp/me2mom/client_session.js

Issue 8227028: Fix Javascript errors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | remoting/webapp/me2mom/remoting.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 * Session class that handles creation and teardown of a remoting session. 7 * Session class that handles creation and teardown of a remoting session.
8 * 8 *
9 * This abstracts a <embed> element and controls the plugin which does the 9 * This abstracts a <embed> element and controls the plugin which does the
10 * actual remoting work. There should be no UI code inside this class. It 10 * actual remoting work. There should be no UI code inside this class. It
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 CONNECTION_FAILED: 8 54 CONNECTION_FAILED: 8
55 }; 55 };
56 56
57 /** @enum {number} */ 57 /** @enum {number} */
58 remoting.ClientSession.ConnectionError = { 58 remoting.ClientSession.ConnectionError = {
59 NONE: 0, 59 NONE: 0,
60 HOST_IS_OFFLINE: 1, 60 HOST_IS_OFFLINE: 1,
61 SESSION_REJECTED: 2, 61 SESSION_REJECTED: 2,
62 INCOMPATIBLE_PROTOCOL: 3, 62 INCOMPATIBLE_PROTOCOL: 3,
63 NETWORK_FAILURE: 4, 63 NETWORK_FAILURE: 4,
64 OTHER: 5, 64 OTHER: 5
65 }; 65 };
66 66
67 /** 67 /**
68 * The current state of the session. 68 * The current state of the session.
69 * @type {remoting.ClientSession.State} 69 * @type {remoting.ClientSession.State}
70 */ 70 */
71 remoting.ClientSession.prototype.state = remoting.ClientSession.State.UNKNOWN; 71 remoting.ClientSession.prototype.state = remoting.ClientSession.State.UNKNOWN;
72 72
73 /** 73 /**
74 * The last connection error. Set when state is set to CONNECTION_FAILED. 74 * The last connection error. Set when state is set to CONNECTION_FAILED.
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 'video_bandwidth': this.plugin.videoBandwidth, 405 'video_bandwidth': this.plugin.videoBandwidth,
406 'capture_latency': this.plugin.videoCaptureLatency, 406 'capture_latency': this.plugin.videoCaptureLatency,
407 'encode_latency': this.plugin.videoEncodeLatency, 407 'encode_latency': this.plugin.videoEncodeLatency,
408 'decode_latency': this.plugin.videoDecodeLatency, 408 'decode_latency': this.plugin.videoDecodeLatency,
409 'render_latency': this.plugin.videoRenderLatency, 409 'render_latency': this.plugin.videoRenderLatency,
410 'roundtrip_latency': this.plugin.roundTripLatency 410 'roundtrip_latency': this.plugin.roundTripLatency
411 }; 411 };
412 }; 412 };
413 413
414 }()); 414 }());
OLDNEW
« no previous file with comments | « no previous file | remoting/webapp/me2mom/remoting.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698