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

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

Issue 9567033: Cleanup error handling in the client plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 8 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 | Annotate | Revision Log
« no previous file with comments | « remoting/webapp/client_session.js ('k') | no next file » | 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) 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 9
10 'use strict'; 10 'use strict';
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 case remoting.ClientSession.ConnectionError.NONE: 81 case remoting.ClientSession.ConnectionError.NONE:
82 return 'none'; 82 return 'none';
83 case remoting.ClientSession.ConnectionError.HOST_IS_OFFLINE: 83 case remoting.ClientSession.ConnectionError.HOST_IS_OFFLINE:
84 return 'host-is-offline'; 84 return 'host-is-offline';
85 case remoting.ClientSession.ConnectionError.SESSION_REJECTED: 85 case remoting.ClientSession.ConnectionError.SESSION_REJECTED:
86 return 'session-rejected'; 86 return 'session-rejected';
87 case remoting.ClientSession.ConnectionError.INCOMPATIBLE_PROTOCOL: 87 case remoting.ClientSession.ConnectionError.INCOMPATIBLE_PROTOCOL:
88 return 'incompatible-protocol'; 88 return 'incompatible-protocol';
89 case remoting.ClientSession.ConnectionError.NETWORK_FAILURE: 89 case remoting.ClientSession.ConnectionError.NETWORK_FAILURE:
90 return 'network-failure'; 90 return 'network-failure';
91 case remoting.ClientSession.ConnectionError.UNKNOWN:
92 return 'unknown';
91 default: 93 default:
92 return 'unknown-' + connectionError; 94 return 'unknown-' + connectionError;
93 } 95 }
94 }; 96 };
95 97
96 /** @private */ 98 /** @private */
97 remoting.ServerLogEntry.KEY_SESSION_DURATION_ = 'session-duration'; 99 remoting.ServerLogEntry.KEY_SESSION_DURATION_ = 'session-duration';
98 100
99 /** @private */ 101 /** @private */
100 remoting.ServerLogEntry.VALUE_EVENT_NAME_CONNECTION_STATISTICS_ = 102 remoting.ServerLogEntry.VALUE_EVENT_NAME_CONNECTION_STATISTICS_ =
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 remoting.ServerLogEntry.getModeField = function(mode) { 471 remoting.ServerLogEntry.getModeField = function(mode) {
470 switch(mode) { 472 switch(mode) {
471 case remoting.ClientSession.Mode.IT2ME: 473 case remoting.ClientSession.Mode.IT2ME:
472 return remoting.ServerLogEntry.VALUE_MODE_IT2ME_; 474 return remoting.ServerLogEntry.VALUE_MODE_IT2ME_;
473 case remoting.ClientSession.Mode.ME2ME: 475 case remoting.ClientSession.Mode.ME2ME:
474 return remoting.ServerLogEntry.VALUE_MODE_ME2ME_; 476 return remoting.ServerLogEntry.VALUE_MODE_ME2ME_;
475 default: 477 default:
476 return remoting.ServerLogEntry.VALUE_MODE_UNKNOWN_; 478 return remoting.ServerLogEntry.VALUE_MODE_UNKNOWN_;
477 } 479 }
478 }; 480 };
OLDNEW
« no previous file with comments | « remoting/webapp/client_session.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698