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

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

Issue 1285213006: Send connection setup results using XHRs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 * Class handling creation and teardown of a remoting client session. 7 * Class handling creation and teardown of a remoting client session.
8 * 8 *
9 * The ClientSession class controls lifetime of the client plugin 9 * The ClientSession class controls lifetime of the client plugin
10 * object and provides the plugin with the functionality it needs to 10 * object and provides the plugin with the functionality it needs to
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 * 379 *
380 * @private 380 * @private
381 */ 381 */
382 remoting.ClientSession.prototype.createLogger_ = function( 382 remoting.ClientSession.prototype.createLogger_ = function(
383 useApiary, signalStrategy) { 383 useApiary, signalStrategy) {
384 if (useApiary) { 384 if (useApiary) {
385 var logger = new remoting.SessionLogger( 385 var logger = new remoting.SessionLogger(
386 remoting.ChromotingEvent.Role.CLIENT, 386 remoting.ChromotingEvent.Role.CLIENT,
387 remoting.TelemetryEventWriter.Client.write 387 remoting.TelemetryEventWriter.Client.write
388 ); 388 );
389 signalStrategy.sendConnectionSetupResults(logger);
390 return logger; 389 return logger;
391 } else { 390 } else {
392 return new remoting.LogToServer(signalStrategy); 391 return new remoting.LogToServer(signalStrategy);
393 } 392 }
394 }; 393 };
395 394
396 /** 395 /**
397 * Sends a signaling message. 396 * Sends a signaling message.
398 * 397 *
399 * @param {string} message XML string of IQ stanza to send to server. 398 * @param {string} message XML string of IQ stanza to send to server.
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 * Enable or disable logging of connection errors due to a host being offline. 654 * Enable or disable logging of connection errors due to a host being offline.
656 * For example, if attempting a connection using a cached JID, host-offline 655 * For example, if attempting a connection using a cached JID, host-offline
657 * errors should not be logged because the JID will be refreshed and the 656 * errors should not be logged because the JID will be refreshed and the
658 * connection retried. 657 * connection retried.
659 * 658 *
660 * @param {boolean} enable True to log host-offline errors; false to suppress. 659 * @param {boolean} enable True to log host-offline errors; false to suppress.
661 */ 660 */
662 remoting.ClientSession.prototype.logHostOfflineErrors = function(enable) { 661 remoting.ClientSession.prototype.logHostOfflineErrors = function(enable) {
663 this.logHostOfflineErrors_ = enable; 662 this.logHostOfflineErrors_ = enable;
664 }; 663 };
OLDNEW
« no previous file with comments | « no previous file | remoting/webapp/base/js/dns_blackhole_checker.js » ('j') | remoting/webapp/base/js/fallback_signal_strategy.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698