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

Issue 2652973002: [scheduler] Plumb websocket information to scheduler (Closed)

Created:
3 years, 11 months ago by altimin
Modified:
3 years, 10 months ago
CC:
chromium-reviews, tyoshino+watch_chromium.org, yhirano+watch_chromium.org, blink-reviews, kinuko+watch, scheduler-bugs_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[scheduler] Plumb websocket information to scheduler Notify scheduler about websocket connections and stop budget-based throttling when one is present. BUG=639852 Review-Url: https://codereview.chromium.org/2652973002 Cr-Commit-Position: refs/heads/master@{#449243} Committed: https://chromium.googlesource.com/chromium/src/+/0618218ad2514070703af6237b0ae3579276b433

Patch Set 1 #

Patch Set 2 : Removed include #

Total comments: 25

Patch Set 3 : Addressed comments from alexclarke@ #

Patch Set 4 : Rebased #

Patch Set 5 : Introduce WebFrameScheduler::ActiveConnectionHandle #

Total comments: 16

Patch Set 6 : Addressed comments & added simtest #

Total comments: 4

Patch Set 7 : git #

Unified diffs Side-by-side diffs Delta from patch set Stats (+289 lines, -17 lines) Patch
M third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.h View 1 2 3 4 5 4 chunks +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp View 1 2 3 4 5 8 chunks +14 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/WebFrameScheduler.h View 1 2 3 4 5 3 chunks +18 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/web_frame_scheduler_impl.h View 1 2 3 4 5 3 chunks +24 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/web_frame_scheduler_impl.cc View 1 2 3 4 5 6 chunks +45 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler_impl.h View 1 2 3 4 5 4 chunks +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler_impl.cc View 1 2 3 4 5 5 chunks +39 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler_impl_unittest.cc View 1 2 3 4 1 chunk +100 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/Source/web/tests/ActiveConnectionThrottlingTest.cpp View 1 2 3 4 5 6 1 chunk +32 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebViewScheduler.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (21 generated)
altimin
PTAL
3 years, 11 months ago (2017-01-24 15:58:34 UTC) #4
alex clarke (OOO till 29th)
https://codereview.chromium.org/2652973002/diff/20001/third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp File third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp (right): https://codereview.chromium.org/2652973002/diff/20001/third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp#newcode147 third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp:147: DCHECK(!m_blobLoader); How well do we understand the lifetime of ...
3 years, 11 months ago (2017-01-24 18:15:34 UTC) #5
altimin
PTAL https://codereview.chromium.org/2652973002/diff/20001/third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp File third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp (right): https://codereview.chromium.org/2652973002/diff/20001/third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp#newcode147 third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp:147: DCHECK(!m_blobLoader); On 2017/01/24 18:15:33, alex clarke wrote: > ...
3 years, 11 months ago (2017-01-24 18:39:05 UTC) #6
haraken
https://codereview.chromium.org/2652973002/diff/20001/third_party/WebKit/Source/platform/WebFrameScheduler.h File third_party/WebKit/Source/platform/WebFrameScheduler.h (right): https://codereview.chromium.org/2652973002/diff/20001/third_party/WebKit/Source/platform/WebFrameScheduler.h#newcode65 third_party/WebKit/Source/platform/WebFrameScheduler.h:65: virtual void didCloseWebSocket() {} On 2017/01/24 18:15:33, alex clarke ...
3 years, 11 months ago (2017-01-24 21:49:08 UTC) #11
yhirano
Managing m_notifiedDocumentAboutConnection manually looks tiresome and error-prone. Do you have any utilities that can be ...
3 years, 11 months ago (2017-01-25 03:38:24 UTC) #12
altimin
PTAL https://codereview.chromium.org/2652973002/diff/20001/third_party/WebKit/Source/platform/WebFrameScheduler.h File third_party/WebKit/Source/platform/WebFrameScheduler.h (right): https://codereview.chromium.org/2652973002/diff/20001/third_party/WebKit/Source/platform/WebFrameScheduler.h#newcode65 third_party/WebKit/Source/platform/WebFrameScheduler.h:65: virtual void didCloseWebSocket() {} On 2017/01/24 21:49:08, haraken ...
3 years, 11 months ago (2017-01-26 11:26:15 UTC) #13
Sami
Overall logic seems fine to me. Could we add a new test suite (probably simtest-based) ...
3 years, 11 months ago (2017-01-26 15:53:34 UTC) #18
alex clarke (OOO till 29th)
https://codereview.chromium.org/2652973002/diff/20001/third_party/WebKit/Source/platform/WebFrameScheduler.h File third_party/WebKit/Source/platform/WebFrameScheduler.h (right): https://codereview.chromium.org/2652973002/diff/20001/third_party/WebKit/Source/platform/WebFrameScheduler.h#newcode65 third_party/WebKit/Source/platform/WebFrameScheduler.h:65: virtual void didCloseWebSocket() {} On 2017/01/26 15:53:34, Sami wrote: ...
3 years, 11 months ago (2017-01-26 16:02:37 UTC) #19
alex clarke (OOO till 29th)
https://codereview.chromium.org/2652973002/diff/80001/third_party/WebKit/Source/platform/WebFrameScheduler.h File third_party/WebKit/Source/platform/WebFrameScheduler.h (right): https://codereview.chromium.org/2652973002/diff/80001/third_party/WebKit/Source/platform/WebFrameScheduler.h#newcode21 third_party/WebKit/Source/platform/WebFrameScheduler.h:21: class ActiveConnectionHandle { On 2017/01/26 16:02:36, alex clarke wrote: ...
3 years, 11 months ago (2017-01-26 16:13:56 UTC) #20
altimin
https://codereview.chromium.org/2652973002/diff/80001/third_party/WebKit/Source/platform/WebFrameScheduler.h File third_party/WebKit/Source/platform/WebFrameScheduler.h (right): https://codereview.chromium.org/2652973002/diff/80001/third_party/WebKit/Source/platform/WebFrameScheduler.h#newcode21 third_party/WebKit/Source/platform/WebFrameScheduler.h:21: class ActiveConnectionHandle { On 2017/01/26 16:13:56, alex clarke wrote: ...
3 years, 11 months ago (2017-01-26 16:23:13 UTC) #21
alex clarke (OOO till 29th)
https://codereview.chromium.org/2652973002/diff/80001/third_party/WebKit/Source/platform/WebFrameScheduler.h File third_party/WebKit/Source/platform/WebFrameScheduler.h (right): https://codereview.chromium.org/2652973002/diff/80001/third_party/WebKit/Source/platform/WebFrameScheduler.h#newcode21 third_party/WebKit/Source/platform/WebFrameScheduler.h:21: class ActiveConnectionHandle { On 2017/01/26 16:23:13, altimin wrote: > ...
3 years, 11 months ago (2017-01-26 16:26:54 UTC) #22
yhirano
modules/websockets lgtm
3 years, 11 months ago (2017-01-27 02:18:57 UTC) #23
altimin
PTAL yhirano@: I've made minor changes to DocumentWebSocketChannel (moved connection handle initialization to DWSC::connect from ...
3 years, 10 months ago (2017-02-08 15:56:55 UTC) #24
Sami
lgtm % one question about the test https://codereview.chromium.org/2652973002/diff/100001/third_party/WebKit/Source/web/tests/ActiveConnectionThrottlingTest.cpp File third_party/WebKit/Source/web/tests/ActiveConnectionThrottlingTest.cpp (right): https://codereview.chromium.org/2652973002/diff/100001/third_party/WebKit/Source/web/tests/ActiveConnectionThrottlingTest.cpp#newcode18 third_party/WebKit/Source/web/tests/ActiveConnectionThrottlingTest.cpp:18: SimRequest mainResource("https://example.com/", ...
3 years, 10 months ago (2017-02-08 17:26:59 UTC) #25
altimin
https://codereview.chromium.org/2652973002/diff/100001/third_party/WebKit/Source/web/tests/ActiveConnectionThrottlingTest.cpp File third_party/WebKit/Source/web/tests/ActiveConnectionThrottlingTest.cpp (right): https://codereview.chromium.org/2652973002/diff/100001/third_party/WebKit/Source/web/tests/ActiveConnectionThrottlingTest.cpp#newcode18 third_party/WebKit/Source/web/tests/ActiveConnectionThrottlingTest.cpp:18: SimRequest mainResource("https://example.com/", "text/html"); On 2017/02/08 17:26:58, Sami wrote: > ...
3 years, 10 months ago (2017-02-08 17:32:13 UTC) #29
yhirano
still lgtm
3 years, 10 months ago (2017-02-09 01:53:56 UTC) #33
haraken
LGTM
3 years, 10 months ago (2017-02-09 09:09:52 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2652973002/120001
3 years, 10 months ago (2017-02-09 09:10:37 UTC) #37
commit-bot: I haz the power
3 years, 10 months ago (2017-02-09 09:15:22 UTC) #40
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/0618218ad2514070703af6237b0a...

Powered by Google App Engine
This is Rietveld 408576698