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

Side by Side Diff: remoting/webapp/base/js/signal_strategy.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 'use strict'; 5 'use strict';
6 6
7 /** @suppress {duplicate} */ 7 /** @suppress {duplicate} */
8 var remoting = remoting || {}; 8 var remoting = remoting || {};
9 9
10 /** 10 /**
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 remoting.SignalStrategy.prototype.connect = 69 remoting.SignalStrategy.prototype.connect =
70 function(server, username, authToken) { 70 function(server, username, authToken) {
71 }; 71 };
72 72
73 /** 73 /**
74 * Sends a message. Can be called only in CONNECTED state. 74 * Sends a message. Can be called only in CONNECTED state.
75 * @param {string} message 75 * @param {string} message
76 */ 76 */
77 remoting.SignalStrategy.prototype.sendMessage = function(message) {}; 77 remoting.SignalStrategy.prototype.sendMessage = function(message) {};
78 78
79 /**
80 * Send any messages accumulated during connection set-up.
81 *
82 * @param {remoting.Logger} logger The logger instance for the
83 * connection.
84 */
85 remoting.SignalStrategy.prototype.sendConnectionSetupResults =
86 function(logger) {
87 };
88
89 /** @return {remoting.SignalStrategy.State} Current state */ 79 /** @return {remoting.SignalStrategy.State} Current state */
90 remoting.SignalStrategy.prototype.getState = function() {}; 80 remoting.SignalStrategy.prototype.getState = function() {};
91 81
92 /** @return {!remoting.Error} Error when in FAILED state. */ 82 /** @return {!remoting.Error} Error when in FAILED state. */
93 remoting.SignalStrategy.prototype.getError = function() {}; 83 remoting.SignalStrategy.prototype.getError = function() {};
94 84
95 /** @return {string} Current JID when in CONNECTED state. */ 85 /** @return {string} Current JID when in CONNECTED state. */
96 remoting.SignalStrategy.prototype.getJid = function() {}; 86 remoting.SignalStrategy.prototype.getJid = function() {};
97 87
98 /** @return {remoting.SignalStrategy.Type} The signal strategy type. */ 88 /** @return {remoting.SignalStrategy.Type} The signal strategy type. */
(...skipping 15 matching lines...) Expand all
114 console.log('FallbackSignalStrategy progress: ' + progress); 104 console.log('FallbackSignalStrategy progress: ' + progress);
115 }; 105 };
116 106
117 return new remoting.FallbackSignalStrategy( 107 return new remoting.FallbackSignalStrategy(
118 new remoting.DnsBlackholeChecker(new remoting.XmppConnection()), 108 new remoting.DnsBlackholeChecker(new remoting.XmppConnection()),
119 new remoting.WcsAdapter()); 109 new remoting.WcsAdapter());
120 } else { 110 } else {
121 return new remoting.WcsAdapter(); 111 return new remoting.WcsAdapter();
122 } 112 }
123 }; 113 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698