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

Issue 15927033: Add host-side rate-limiting to desktop resize events. (Closed)

Created:
7 years, 6 months ago by Jamie
Modified:
7 years, 6 months ago
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, rmsousa+watch_chromium.org, weitaosu+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Add host-side rate-limiting to desktop resize events. Also, make the client-side rate-limiting more granular. This means that the desktop resizes sooner after the user stops resizing the window. BUG=187272 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=205093

Patch Set 1 #

Total comments: 14

Patch Set 2 : Reviewer feedback. #

Total comments: 9

Patch Set 3 : Reviewer comments. #

Patch Set 4 : Rebase #

Patch Set 5 : Fixed ResizingHostObserver unit-tests. #

Total comments: 8

Patch Set 6 : Use QuitClosure instead of Bind. #

Patch Set 7 : Made unit-test less sensitive to timing. #

Total comments: 10

Patch Set 8 : Reviewer feedback. #

Patch Set 9 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -12 lines) Patch
M remoting/host/desktop_session_proxy.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -2 lines 0 comments Download
M remoting/host/me2me_desktop_environment.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M remoting/host/me2me_desktop_environment.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -0 lines 0 comments Download
M remoting/host/resizing_host_observer.h View 1 2 3 4 5 6 2 chunks +18 lines, -1 line 0 comments Download
M remoting/host/resizing_host_observer.cc View 1 2 3 4 5 6 7 4 chunks +42 lines, -5 lines 0 comments Download
M remoting/host/resizing_host_observer_unittest.cc View 1 2 3 4 5 6 7 4 chunks +57 lines, -2 lines 0 comments Download
M remoting/webapp/client_plugin_async.js View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M remoting/webapp/client_session.js View 1 2 3 2 chunks +8 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
Jamie
ptal https://codereview.chromium.org/15927033/diff/1/remoting/host/resizing_host_observer.cc File remoting/host/resizing_host_observer.cc (right): https://codereview.chromium.org/15927033/diff/1/remoting/host/resizing_host_observer.cc#newcode17 remoting/host/resizing_host_observer.cc:17: const int kMinimumResizeIntervalMs = 1000; This value is ...
7 years, 6 months ago (2013-06-03 23:26:28 UTC) #1
alexeypa (please no reviews)
https://codereview.chromium.org/15927033/diff/1/remoting/host/resizing_host_observer.cc File remoting/host/resizing_host_observer.cc (right): https://codereview.chromium.org/15927033/diff/1/remoting/host/resizing_host_observer.cc#newcode17 remoting/host/resizing_host_observer.cc:17: const int kMinimumResizeIntervalMs = 1000; nit #1: Add a ...
7 years, 6 months ago (2013-06-04 00:05:26 UTC) #2
Jamie
ptal https://codereview.chromium.org/15927033/diff/1/remoting/host/resizing_host_observer.cc File remoting/host/resizing_host_observer.cc (right): https://codereview.chromium.org/15927033/diff/1/remoting/host/resizing_host_observer.cc#newcode17 remoting/host/resizing_host_observer.cc:17: const int kMinimumResizeIntervalMs = 1000; On 2013/06/04 00:05:26, ...
7 years, 6 months ago (2013-06-04 01:27:49 UTC) #3
alexeypa (please no reviews)
https://codereview.chromium.org/15927033/diff/6001/remoting/host/client_session.cc File remoting/host/client_session.cc (right): https://codereview.chromium.org/15927033/diff/6001/remoting/host/client_session.cc#newcode218 remoting/host/client_session.cc:218: host_capabilities_ = host_capabilities_ + " " + kRateLimitResizeRequests; On ...
7 years, 6 months ago (2013-06-04 17:07:37 UTC) #4
Jamie
ptal https://codereview.chromium.org/15927033/diff/6001/remoting/host/client_session.cc File remoting/host/client_session.cc (right): https://codereview.chromium.org/15927033/diff/6001/remoting/host/client_session.cc#newcode218 remoting/host/client_session.cc:218: host_capabilities_ = host_capabilities_ + " " + kRateLimitResizeRequests; ...
7 years, 6 months ago (2013-06-04 21:18:03 UTC) #5
Jamie
Alex: ping.
7 years, 6 months ago (2013-06-05 16:57:30 UTC) #6
alexeypa (please no reviews)
lgtm
7 years, 6 months ago (2013-06-06 17:38:35 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamiewalch@chromium.org/15927033/16001
7 years, 6 months ago (2013-06-06 17:42:01 UTC) #8
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 6 months ago (2013-06-06 18:05:23 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamiewalch@chromium.org/15927033/50001
7 years, 6 months ago (2013-06-06 18:21:29 UTC) #10
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) remoting_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=135076
7 years, 6 months ago (2013-06-06 19:10:40 UTC) #11
Jamie
Forgot to update the unit-tests. PTAL.
7 years, 6 months ago (2013-06-06 20:14:15 UTC) #12
alexeypa (please no reviews)
https://codereview.chromium.org/15927033/diff/65001/remoting/host/resizing_host_observer_unittest.cc File remoting/host/resizing_host_observer_unittest.cc (right): https://codereview.chromium.org/15927033/diff/65001/remoting/host/resizing_host_observer_unittest.cc#newcode201 remoting/host/resizing_host_observer_unittest.cc:201: int interval_ms = 10; 1ms should be good enough. ...
7 years, 6 months ago (2013-06-06 21:45:11 UTC) #13
Jamie
ptal https://codereview.chromium.org/15927033/diff/65001/remoting/host/resizing_host_observer_unittest.cc File remoting/host/resizing_host_observer_unittest.cc (right): https://codereview.chromium.org/15927033/diff/65001/remoting/host/resizing_host_observer_unittest.cc#newcode201 remoting/host/resizing_host_observer_unittest.cc:201: int interval_ms = 10; On 2013/06/06 21:45:11, alexeypa ...
7 years, 6 months ago (2013-06-06 22:08:03 UTC) #14
alexeypa (please no reviews)
https://codereview.chromium.org/15927033/diff/65001/remoting/host/resizing_host_observer_unittest.cc File remoting/host/resizing_host_observer_unittest.cc (right): https://codereview.chromium.org/15927033/diff/65001/remoting/host/resizing_host_observer_unittest.cc#newcode201 remoting/host/resizing_host_observer_unittest.cc:201: int interval_ms = 10; On 2013/06/06 22:08:04, Jamie wrote: ...
7 years, 6 months ago (2013-06-07 16:23:09 UTC) #15
Jamie
As discussed, I've changed the unit-test seam to allow Time::Now to be mocked out, which ...
7 years, 6 months ago (2013-06-07 18:40:13 UTC) #16
alexeypa (please no reviews)
lgtm once my comments are addressed. https://codereview.chromium.org/15927033/diff/75001/remoting/host/resizing_host_observer.cc File remoting/host/resizing_host_observer.cc (right): https://codereview.chromium.org/15927033/diff/75001/remoting/host/resizing_host_observer.cc#newcode127 remoting/host/resizing_host_observer.cc:127: base::TimeDelta minimum_resize_interval = ...
7 years, 6 months ago (2013-06-07 19:50:25 UTC) #17
Jamie
fyi https://codereview.chromium.org/15927033/diff/75001/remoting/host/resizing_host_observer.cc File remoting/host/resizing_host_observer.cc (right): https://codereview.chromium.org/15927033/diff/75001/remoting/host/resizing_host_observer.cc#newcode127 remoting/host/resizing_host_observer.cc:127: base::TimeDelta minimum_resize_interval = base::TimeDelta::FromSeconds(1); On 2013/06/07 19:50:25, alexeypa ...
7 years, 6 months ago (2013-06-07 20:20:14 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamiewalch@chromium.org/15927033/94001
7 years, 6 months ago (2013-06-07 20:20:59 UTC) #19
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test on builder ...
7 years, 6 months ago (2013-06-08 07:38:06 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamiewalch@chromium.org/15927033/94001
7 years, 6 months ago (2013-06-08 17:04:42 UTC) #21
commit-bot: I haz the power
Failed to apply patch for remoting/host/me2me_desktop_environment.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 6 months ago (2013-06-08 17:04:44 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamiewalch@chromium.org/15927033/32002
7 years, 6 months ago (2013-06-08 23:37:59 UTC) #23
commit-bot: I haz the power
7 years, 6 months ago (2013-06-09 01:43:20 UTC) #24
Message was sent while issue was closed.
Change committed as 205093

Powered by Google App Engine
This is Rietveld 408576698