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

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

Issue 955283002: Converted remoting.Error from an enum to a class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Requested changes. 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 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 * @param {remoting.LogToServer} logToServer The LogToServer instance for the 82 * @param {remoting.LogToServer} logToServer The LogToServer instance for the
83 * connection. 83 * connection.
84 */ 84 */
85 remoting.SignalStrategy.prototype.sendConnectionSetupResults = 85 remoting.SignalStrategy.prototype.sendConnectionSetupResults =
86 function(logToServer) { 86 function(logToServer) {
87 }; 87 };
88 88
89 /** @return {remoting.SignalStrategy.State} Current state */ 89 /** @return {remoting.SignalStrategy.State} Current state */
90 remoting.SignalStrategy.prototype.getState = function() {}; 90 remoting.SignalStrategy.prototype.getState = function() {};
91 91
92 /** @return {remoting.Error} Error when in FAILED state. */ 92 /** @return {!remoting.Error} Error when in FAILED state. */
93 remoting.SignalStrategy.prototype.getError = function() {}; 93 remoting.SignalStrategy.prototype.getError = function() {};
94 94
95 /** @return {string} Current JID when in CONNECTED state. */ 95 /** @return {string} Current JID when in CONNECTED state. */
96 remoting.SignalStrategy.prototype.getJid = function() {}; 96 remoting.SignalStrategy.prototype.getJid = function() {};
97 97
98 /** @return {remoting.SignalStrategy.Type} The signal strategy type. */ 98 /** @return {remoting.SignalStrategy.Type} The signal strategy type. */
99 remoting.SignalStrategy.prototype.getType = function() {}; 99 remoting.SignalStrategy.prototype.getType = function() {};
100 100
101 /** 101 /**
102 * Creates the appropriate signal strategy for the current environment. 102 * Creates the appropriate signal strategy for the current environment.
(...skipping 11 matching lines...) Expand all
114 console.log('FallbackSignalStrategy progress: ' + progress); 114 console.log('FallbackSignalStrategy progress: ' + progress);
115 }; 115 };
116 116
117 return new remoting.FallbackSignalStrategy( 117 return new remoting.FallbackSignalStrategy(
118 new remoting.DnsBlackholeChecker(new remoting.XmppConnection()), 118 new remoting.DnsBlackholeChecker(new remoting.XmppConnection()),
119 new remoting.WcsAdapter()); 119 new remoting.WcsAdapter());
120 } else { 120 } else {
121 return new remoting.WcsAdapter(); 121 return new remoting.WcsAdapter();
122 } 122 }
123 }; 123 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698