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

Issue 27571005: Replace Timers used in ActiveDOMObject with AsyncMethodRunner (Closed)

Created:
7 years, 2 months ago by tyoshino (SeeGerritForStatus)
Modified:
7 years, 2 months ago
CC:
blink-reviews, dglazkov+blink, apavlov+blink_chromium.org, darktears
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Replace Timers used in ActiveDOMObject with AsyncMethodRunner AsyncMethodRunner is a wrapper of Timer with simplified interface for running methods asynchronously. It's mainly for use in ActiveDOMObject subclasses. Where suspend() and resume() are not implemented assuming other code suspends timers, implement them to ensure they work even when those external code doesn't suspend timers correctly. BUG=none Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=160316

Patch Set 1 #

Patch Set 2 : New change #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : Addressed #11 #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+246 lines, -69 lines) Patch
M Source/core/css/FontFaceSet.h View 1 2 4 chunks +11 lines, -3 lines 0 comments Download
M Source/core/css/FontFaceSet.cpp View 1 2 7 chunks +29 lines, -12 lines 0 comments Download
M Source/core/xml/XMLHttpRequest.h View 1 3 chunks +3 lines, -2 lines 0 comments Download
M Source/core/xml/XMLHttpRequest.cpp View 1 2 chunks +3 lines, -5 lines 0 comments Download
M Source/modules/mediasource/SourceBuffer.h View 1 2 4 chunks +9 lines, -7 lines 0 comments Download
M Source/modules/mediasource/SourceBuffer.cpp View 1 2 8 chunks +30 lines, -16 lines 0 comments Download
M Source/modules/mediastream/RTCPeerConnection.h View 1 4 chunks +5 lines, -3 lines 0 comments Download
M Source/modules/mediastream/RTCPeerConnection.cpp View 1 4 chunks +15 lines, -4 lines 0 comments Download
M Source/modules/notifications/Notification.h View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M Source/modules/notifications/Notification.cpp View 1 2 3 2 chunks +3 lines, -4 lines 0 comments Download
M Source/modules/websockets/WebSocket.h View 1 3 chunks +5 lines, -5 lines 0 comments Download
M Source/modules/websockets/WebSocket.cpp View 1 3 chunks +3 lines, -5 lines 0 comments Download
A Source/platform/AsyncMethodRunner.h View 1 2 3 4 1 chunk +127 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
tyoshino (SeeGerritForStatus)
7 years, 2 months ago (2013-10-17 09:19:13 UTC) #1
Kunihiko Sakamoto
lgtm
7 years, 2 months ago (2013-10-17 09:43:41 UTC) #2
tyoshino (SeeGerritForStatus)
+abarth for OWNER review.
7 years, 2 months ago (2013-10-17 10:32:45 UTC) #3
abarth-chromium
What problem does this solve? There's a ton of code that doesn't worry about this ...
7 years, 2 months ago (2013-10-17 19:37:48 UTC) #4
abarth-chromium
If we're going to fix this issue, we should write a test that demonstrates the ...
7 years, 2 months ago (2013-10-17 19:38:09 UTC) #5
tyoshino (SeeGerritForStatus)
I'm checking if all ActiveDOMObject subclasses are implemented correctly. As XMLHttpRequestProgressEventThrottle::suspend() does this, I thought ...
7 years, 2 months ago (2013-10-18 14:23:33 UTC) #6
tyoshino (SeeGerritForStatus)
On 2013/10/18 14:23:33, tyoshino wrote: > Since > they're pumping events (see content::RenderThreadImpl::Send()), the message ...
7 years, 2 months ago (2013-10-18 14:28:43 UTC) #7
abarth-chromium
Rather than trying to point-fix all of these issues (there are a lot of them!), ...
7 years, 2 months ago (2013-10-18 16:23:41 UTC) #8
tyoshino (SeeGerritForStatus)
I'll try to figure out. Looks like we should start with refactoring PageGroupLoadDeferrer. What suspend()/resume() ...
7 years, 2 months ago (2013-10-18 16:45:32 UTC) #9
tyoshino (SeeGerritForStatus)
Adam, please take a look again. Introducing AsynMethodRunner should simplify async method running and also ...
7 years, 2 months ago (2013-10-22 14:42:47 UTC) #10
abarth-chromium
LGTM Thanks for pulling this out into a separate class. https://codereview.chromium.org/27571005/diff/78001/Source/modules/notifications/Notification.cpp File Source/modules/notifications/Notification.cpp (right): https://codereview.chromium.org/27571005/diff/78001/Source/modules/notifications/Notification.cpp#newcode1 ...
7 years, 2 months ago (2013-10-22 18:46:51 UTC) #11
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/27571005/diff/78001/Source/modules/notifications/Notification.cpp File Source/modules/notifications/Notification.cpp (right): https://codereview.chromium.org/27571005/diff/78001/Source/modules/notifications/Notification.cpp#newcode1 Source/modules/notifications/Notification.cpp:1: On 2013/10/22 18:46:51, abarth wrote: > supurious? oh, mistake. ...
7 years, 2 months ago (2013-10-23 06:02:29 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tyoshino@chromium.org/27571005/168001
7 years, 2 months ago (2013-10-23 06:03:09 UTC) #13
commit-bot: I haz the power
7 years, 2 months ago (2013-10-23 07:45:56 UTC) #14
Message was sent while issue was closed.
Change committed as 160316

Powered by Google App Engine
This is Rietveld 408576698