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

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

Issue 1032553008: [Chromoting] Update client connection enums in JS to match C++. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add support for AUTHENTICATED in webapp 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 * A class of server log entries. 7 * A class of server log entries.
8 * 8 *
9 * Any changes to the values here need to be coordinated with the host and 9 * Any changes to the values here need to be coordinated with the host and
10 * server/log proto code. 10 * server/log proto code.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 * @private 54 * @private
55 * @param {remoting.ClientSession.State} state 55 * @param {remoting.ClientSession.State} state
56 * @return {string} 56 * @return {string}
57 */ 57 */
58 remoting.ServerLogEntry.getValueForSessionState_ = function(state) { 58 remoting.ServerLogEntry.getValueForSessionState_ = function(state) {
59 switch(state) { 59 switch(state) {
60 case remoting.ClientSession.State.UNKNOWN: 60 case remoting.ClientSession.State.UNKNOWN:
61 return 'unknown'; 61 return 'unknown';
62 case remoting.ClientSession.State.CREATED: 62 case remoting.ClientSession.State.CREATED:
63 return 'created'; 63 return 'created';
64 case remoting.ClientSession.State.INITIALIZING:
garykac 2015/03/24 20:36:38 Moved to match order in enum.
65 return 'initializing';
64 case remoting.ClientSession.State.CONNECTING: 66 case remoting.ClientSession.State.CONNECTING:
65 return 'connecting'; 67 return 'connecting';
66 case remoting.ClientSession.State.INITIALIZING: 68 case remoting.ClientSession.State.AUTHENTICATED:
67 return 'initializing'; 69 return 'authenticated';
68 case remoting.ClientSession.State.CONNECTED: 70 case remoting.ClientSession.State.CONNECTED:
69 return 'connected'; 71 return 'connected';
70 case remoting.ClientSession.State.CLOSED: 72 case remoting.ClientSession.State.CLOSED:
71 return 'closed'; 73 return 'closed';
72 case remoting.ClientSession.State.FAILED: 74 case remoting.ClientSession.State.FAILED:
73 return 'connection-failed'; 75 return 'connection-failed';
74 case remoting.ClientSession.State.CONNECTION_DROPPED: 76 case remoting.ClientSession.State.CONNECTION_DROPPED:
75 return 'connection-dropped'; 77 return 'connection-dropped';
76 case remoting.ClientSession.State.CONNECTION_CANCELED: 78 case remoting.ClientSession.State.CONNECTION_CANCELED:
77 return 'connection-canceled'; 79 return 'connection-canceled';
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 case remoting.DesktopConnectedView.Mode.IT2ME: 505 case remoting.DesktopConnectedView.Mode.IT2ME:
504 return remoting.ServerLogEntry.VALUE_MODE_IT2ME_; 506 return remoting.ServerLogEntry.VALUE_MODE_IT2ME_;
505 case remoting.DesktopConnectedView.Mode.ME2ME: 507 case remoting.DesktopConnectedView.Mode.ME2ME:
506 return remoting.ServerLogEntry.VALUE_MODE_ME2ME_; 508 return remoting.ServerLogEntry.VALUE_MODE_ME2ME_;
507 case remoting.DesktopConnectedView.Mode.APP_REMOTING: 509 case remoting.DesktopConnectedView.Mode.APP_REMOTING:
508 return remoting.ServerLogEntry.VALUE_MODE_APP_REMOTING_; 510 return remoting.ServerLogEntry.VALUE_MODE_APP_REMOTING_;
509 default: 511 default:
510 return remoting.ServerLogEntry.VALUE_MODE_UNKNOWN_; 512 return remoting.ServerLogEntry.VALUE_MODE_UNKNOWN_;
511 } 513 }
512 }; 514 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698