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

Issue 815943004: Implement FallbackSignalStrategy. (Closed)

Created:
5 years, 11 months ago by Jamie
Modified:
5 years, 11 months ago
Reviewers:
Sergey Ulanov, kelvinp
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement FallbackSignalStrategy. This allows a preferred signal strategy (currently always XMPP) to be used speculatively, falling back on a back-up strategy (currently always WCS) if that fails or times out. There is also a logging hook that will allow us to log which strategy is in use, as well as corner cases such as the preferred strategy succeeding after the time-out has expired (which would imply that the time-out is too short). The actual logging will be a follow-up CL. BUG=432171 Committed: https://crrev.com/b47eef370e66f6adfddb8b611af6b18672df326a Cr-Commit-Position: refs/heads/master@{#311567}

Patch Set 1 #

Total comments: 24

Patch Set 2 : Reviewer feedback. #

Total comments: 1

Patch Set 3 : Reviewer feedback. #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+653 lines, -1 line) Patch
M remoting/remoting_webapp_files.gypi View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
A remoting/webapp/crd/js/fallback_signal_strategy.js View 1 2 1 chunk +329 lines, -0 lines 0 comments Download
M remoting/webapp/crd/js/signal_strategy.js View 1 2 chunks +26 lines, -1 line 0 comments Download
A remoting/webapp/unittests/fallback_signal_strategy_unittest.js View 1 2 1 chunk +296 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
Jamie
Sergey: PTAL at the main logic. Kelvin: Mostly FYI, but PTAL at the unit tests ...
5 years, 11 months ago (2015-01-13 18:18:21 UTC) #2
kelvinp
General looks good. https://codereview.chromium.org/815943004/diff/1/remoting/webapp/crd/js/fallback_signal_strategy.js File remoting/webapp/crd/js/fallback_signal_strategy.js (right): https://codereview.chromium.org/815943004/diff/1/remoting/webapp/crd/js/fallback_signal_strategy.js#newcode71 remoting/webapp/crd/js/fallback_signal_strategy.js:71: this.State = { Enum should be ...
5 years, 11 months ago (2015-01-13 19:22:48 UTC) #3
Sergey Ulanov
https://codereview.chromium.org/815943004/diff/1/remoting/webapp/crd/js/fallback_signal_strategy.js File remoting/webapp/crd/js/fallback_signal_strategy.js (right): https://codereview.chromium.org/815943004/diff/1/remoting/webapp/crd/js/fallback_signal_strategy.js#newcode227 remoting/webapp/crd/js/fallback_signal_strategy.js:227: remoting.FallbackSignalStrategy.prototype.onStateChanged_ = Maybe separate this into two callbacks, one ...
5 years, 11 months ago (2015-01-13 19:43:51 UTC) #4
Jamie
PTAL https://codereview.chromium.org/815943004/diff/1/remoting/webapp/crd/js/fallback_signal_strategy.js File remoting/webapp/crd/js/fallback_signal_strategy.js (right): https://codereview.chromium.org/815943004/diff/1/remoting/webapp/crd/js/fallback_signal_strategy.js#newcode71 remoting/webapp/crd/js/fallback_signal_strategy.js:71: this.State = { On 2015/01/13 19:22:47, kelvinp wrote: ...
5 years, 11 months ago (2015-01-14 01:36:26 UTC) #5
Sergey Ulanov
lgtm https://codereview.chromium.org/815943004/diff/1/remoting/webapp/crd/js/fallback_signal_strategy.js File remoting/webapp/crd/js/fallback_signal_strategy.js (right): https://codereview.chromium.org/815943004/diff/1/remoting/webapp/crd/js/fallback_signal_strategy.js#newcode313 remoting/webapp/crd/js/fallback_signal_strategy.js:313: * @private On 2015/01/14 01:36:26, Jamie wrote: > ...
5 years, 11 months ago (2015-01-14 19:42:43 UTC) #6
kelvinp
lgtm https://codereview.chromium.org/815943004/diff/1/remoting/webapp/crd/js/fallback_signal_strategy.js File remoting/webapp/crd/js/fallback_signal_strategy.js (right): https://codereview.chromium.org/815943004/diff/1/remoting/webapp/crd/js/fallback_signal_strategy.js#newcode121 remoting/webapp/crd/js/fallback_signal_strategy.js:121: remoting.FallbackSignalStrategy.Result = { On 2015/01/14 01:36:26, Jamie wrote: ...
5 years, 11 months ago (2015-01-14 19:46:22 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/815943004/60001
5 years, 11 months ago (2015-01-14 20:54:37 UTC) #9
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 11 months ago (2015-01-14 22:59:51 UTC) #10
commit-bot: I haz the power
5 years, 11 months ago (2015-01-14 23:00:56 UTC) #11
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/b47eef370e66f6adfddb8b611af6b18672df326a
Cr-Commit-Position: refs/heads/master@{#311567}

Powered by Google App Engine
This is Rietveld 408576698