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

Unified Diff: remoting/webapp/crd/js/signal_strategy.js

Issue 855003008: Log signal strategy progress to server. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/webapp/crd/js/server_log_entry.js ('k') | remoting/webapp/crd/js/wcs_adapter.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/crd/js/signal_strategy.js
diff --git a/remoting/webapp/crd/js/signal_strategy.js b/remoting/webapp/crd/js/signal_strategy.js
index 545b389b68f8c510466b808c3738e546de6be6bd..6f0c3999af7121708a9e132da8e93bf81305cbe3 100644
--- a/remoting/webapp/crd/js/signal_strategy.js
+++ b/remoting/webapp/crd/js/signal_strategy.js
@@ -35,6 +35,15 @@ remoting.SignalStrategy.State = {
CLOSED: 5
};
+/**
+ * @enum {string} SignalStrategy types. Do not add to these values without
+ * updating the corresponding enum in chromoting_extensions.proto.
+ */
+remoting.SignalStrategy.Type = {
+ XMPP: 'xmpp',
+ WCS: 'wcs'
+};
+
remoting.SignalStrategy.prototype.dispose = function() {};
/**
@@ -66,6 +75,16 @@ remoting.SignalStrategy.prototype.connect =
*/
remoting.SignalStrategy.prototype.sendMessage = function(message) {};
+/**
+ * Send any messages accumulated during connection set-up.
+ *
+ * @param {remoting.LogToServer} logToServer The LogToServer instance for the
+ * connection.
+ */
+remoting.SignalStrategy.prototype.sendConnectionSetupResults =
+ function(logToServer) {
+};
+
/** @return {remoting.SignalStrategy.State} Current state */
remoting.SignalStrategy.prototype.getState = function() {};
@@ -75,6 +94,9 @@ remoting.SignalStrategy.prototype.getError = function() {};
/** @return {string} Current JID when in CONNECTED state. */
remoting.SignalStrategy.prototype.getJid = function() {};
+/** @return {remoting.SignalStrategy.Type} The signal strategy type. */
+remoting.SignalStrategy.prototype.getType = function() {};
+
/**
* Creates the appropriate signal strategy for the current environment.
* @return {remoting.SignalStrategy} New signal strategy object.
@@ -92,8 +114,7 @@ remoting.SignalStrategy.create = function() {
};
return new remoting.FallbackSignalStrategy(new remoting.XmppConnection(),
- new remoting.WcsAdapter(),
- progressCallback);
+ new remoting.WcsAdapter());
} else {
return new remoting.WcsAdapter();
« no previous file with comments | « remoting/webapp/crd/js/server_log_entry.js ('k') | remoting/webapp/crd/js/wcs_adapter.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698