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

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

Issue 595063005: Save the client base JID for authentication in case it differs from the email (for accounts non-Goo… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 remoting.SignalStrategy.prototype.sendMessage = function(message) {}; 58 remoting.SignalStrategy.prototype.sendMessage = function(message) {};
59 59
60 /** @return {remoting.SignalStrategy.State} Current state */ 60 /** @return {remoting.SignalStrategy.State} Current state */
61 remoting.SignalStrategy.prototype.getState = function() {}; 61 remoting.SignalStrategy.prototype.getState = function() {};
62 62
63 /** @return {remoting.Error} Error when in FAILED state. */ 63 /** @return {remoting.Error} Error when in FAILED state. */
64 remoting.SignalStrategy.prototype.getError = function() {}; 64 remoting.SignalStrategy.prototype.getError = function() {};
65 65
66 /** @return {string} Current JID when in CONNECTED state. */ 66 /** @return {string} Current JID when in CONNECTED state. */
67 remoting.SignalStrategy.prototype.getJid = function() {}; 67 remoting.SignalStrategy.prototype.getJid = function() {};
68
69 /** Creates the appropriate signal strategy for this environment.
Sergey Ulanov 2014/09/25 02:28:46 nit: "/**" should be on its own line unless the wh
rmsousa 2014/09/27 01:42:17 Done.
70 * @param {function(remoting.SignalStrategy.State): void} onStateChangedCallback
71 * @return {remoting.SignalStrategy} New signal strategy object.
72 */
73 remoting.SignalStrategy.create = function(onStateChangedCallback) {
rmsousa 2014/09/24 02:53:27 I moved this here to keep the implementation selec
74 // Only use XMPP when TCP API is available and TLS support is enabled. That's
75 // not the case for V1 app (socket API is available only to platform apps)
76 // and for Chrome releases before 38.
77 if (chrome.socket && chrome.socket.secure) {
78 return new remoting.XmppConnection(onStateChangedCallback);
79 } else {
80 return new remoting.WcsAdapter(onStateChangedCallback);
81 }
82 };
OLDNEW
« remoting/webapp/host_controller.js ('K') | « remoting/webapp/session_connector_impl.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698