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

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

Issue 8573024: Clean up client state callback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 years, 1 month 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/me2mom/client_session.js ('k') | remoting/webapp/me2mom/viewer_plugin_proto.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 * A class of server log entries. 7 * A class of server log entries.
8 */ 8 */
9 9
10 'use strict'; 10 'use strict';
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 case remoting.ClientSession.ConnectionError.NONE: 78 case remoting.ClientSession.ConnectionError.NONE:
79 return 'none'; 79 return 'none';
80 case remoting.ClientSession.ConnectionError.HOST_IS_OFFLINE: 80 case remoting.ClientSession.ConnectionError.HOST_IS_OFFLINE:
81 return 'host-is-offline'; 81 return 'host-is-offline';
82 case remoting.ClientSession.ConnectionError.SESSION_REJECTED: 82 case remoting.ClientSession.ConnectionError.SESSION_REJECTED:
83 return 'session-rejected'; 83 return 'session-rejected';
84 case remoting.ClientSession.ConnectionError.INCOMPATIBLE_PROTOCOL: 84 case remoting.ClientSession.ConnectionError.INCOMPATIBLE_PROTOCOL:
85 return 'incompatible-protocol'; 85 return 'incompatible-protocol';
86 case remoting.ClientSession.ConnectionError.NETWORK_FAILURE: 86 case remoting.ClientSession.ConnectionError.NETWORK_FAILURE:
87 return 'network-failure'; 87 return 'network-failure';
88 case remoting.ClientSession.ConnectionError.OTHER:
89 return 'other';
90 default: 88 default:
91 return 'unknown-' + connectionError; 89 return 'unknown-' + connectionError;
92 } 90 }
93 } 91 }
94 92
95 /** @private */ 93 /** @private */
96 remoting.ServerLogEntry.prototype.KEY_OS_NAME_ = 'os-name'; 94 remoting.ServerLogEntry.prototype.KEY_OS_NAME_ = 'os-name';
97 /** @private */ 95 /** @private */
98 remoting.ServerLogEntry.prototype.VALUE_OS_NAME_WINDOWS_ = 'Windows'; 96 remoting.ServerLogEntry.prototype.VALUE_OS_NAME_WINDOWS_ = 'Windows';
99 /** @private */ 97 /** @private */
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 } 272 }
275 return null; 273 return null;
276 }; 274 };
277 275
278 /** 276 /**
279 * Adds a field specifying the webapp version to this log entry. 277 * Adds a field specifying the webapp version to this log entry.
280 */ 278 */
281 remoting.ServerLogEntry.prototype.addWebappVersionField = function() { 279 remoting.ServerLogEntry.prototype.addWebappVersionField = function() {
282 this.set(this.KEY_WEBAPP_VERSION_, chrome.app.getDetails().version); 280 this.set(this.KEY_WEBAPP_VERSION_, chrome.app.getDetails().version);
283 }; 281 };
OLDNEW
« no previous file with comments | « remoting/webapp/me2mom/client_session.js ('k') | remoting/webapp/me2mom/viewer_plugin_proto.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698