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

Issue 618673002: Oilpan: reliably track listening PlatformEventControllers. (Closed)

Created:
6 years, 2 months ago by sof
Modified:
6 years, 2 months ago
CC:
blink-reviews, mvanouwerkerk+watch_chromium.org, Inactive
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Oilpan: reliably track listening PlatformEventControllers. Turn PlatformEventController into a GC mixin with Oilpan enabled, and have the PlatformEventDispatcher instance track those via a Persistent reference. It seems precarious to rely on the controller lifetimes be maintained by way of other references 'long enough' for the embedder's platform event handling layer. R=mlamouri,mkwst,haraken,timvolodine BUG=419515 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183158

Patch Set 1 #

Total comments: 3

Patch Set 2 : Don't start updating in a stopped context #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -4 lines) Patch
M Source/core/frame/DeviceSingleWindowEventController.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/frame/DeviceSingleWindowEventController.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/frame/PlatformEventController.h View 2 chunks +3 lines, -1 line 0 comments Download
M Source/core/frame/PlatformEventDispatcher.h View 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/frame/PlatformEventDispatcher.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/battery/BatteryManager.cpp View 1 3 chunks +6 lines, -1 line 0 comments Download
M Source/modules/gamepad/NavigatorGamepad.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/screen_orientation/ScreenOrientationController.cpp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 22 (5 generated)
sof
Please take a look. Goes together with the Chromium-side https://codereview.chromium.org/613203002/ to some extent.
6 years, 2 months ago (2014-09-30 11:44:37 UTC) #2
Mike West
Someone else should review the oilpan changes, but the non-oilpan changes (in particular the `!document` ...
6 years, 2 months ago (2014-09-30 11:51:21 UTC) #4
haraken
https://codereview.chromium.org/618673002/diff/1/Source/core/frame/PlatformEventDispatcher.h File Source/core/frame/PlatformEventDispatcher.h (right): https://codereview.chromium.org/618673002/diff/1/Source/core/frame/PlatformEventDispatcher.h#newcode31 Source/core/frame/PlatformEventDispatcher.h:31: WillBePersistentHeapVector<RawPtrWillBeMember<PlatformEventController> > m_controllers; Are you sure that this persistent ...
6 years, 2 months ago (2014-09-30 12:02:14 UTC) #6
haraken
On 2014/09/30 12:02:14, haraken wrote: > https://codereview.chromium.org/618673002/diff/1/Source/core/frame/PlatformEventDispatcher.h > File Source/core/frame/PlatformEventDispatcher.h (right): > > https://codereview.chromium.org/618673002/diff/1/Source/core/frame/PlatformEventDispatcher.h#newcode31 > ...
6 years, 2 months ago (2014-09-30 12:03:33 UTC) #7
sof
https://codereview.chromium.org/618673002/diff/1/Source/core/frame/PlatformEventDispatcher.h File Source/core/frame/PlatformEventDispatcher.h (right): https://codereview.chromium.org/618673002/diff/1/Source/core/frame/PlatformEventDispatcher.h#newcode31 Source/core/frame/PlatformEventDispatcher.h:31: WillBePersistentHeapVector<RawPtrWillBeMember<PlatformEventController> > m_controllers; On 2014/09/30 12:02:14, haraken wrote: > ...
6 years, 2 months ago (2014-09-30 12:12:21 UTC) #8
mlamouri (slow - plz ping)
https://codereview.chromium.org/618673002/diff/1/Source/modules/battery/BatteryManager.cpp File Source/modules/battery/BatteryManager.cpp (right): https://codereview.chromium.org/618673002/diff/1/Source/modules/battery/BatteryManager.cpp#newcode92 Source/modules/battery/BatteryManager.cpp:92: if (!document || document->activeDOMObjectsAreSuspended() || document->activeDOMObjectsAreStopped()) Is there any ...
6 years, 2 months ago (2014-09-30 17:08:49 UTC) #9
haraken
LGTM It would be great if we could move PlatformEventDispatcher to the heap and make ...
6 years, 2 months ago (2014-10-01 15:58:27 UTC) #10
sof
On 2014/09/30 17:08:49, Mounir Lamouri wrote: > https://codereview.chromium.org/618673002/diff/1/Source/modules/battery/BatteryManager.cpp > File Source/modules/battery/BatteryManager.cpp (right): > > https://codereview.chromium.org/618673002/diff/1/Source/modules/battery/BatteryManager.cpp#newcode92 ...
6 years, 2 months ago (2014-10-02 07:47:15 UTC) #11
sof
On 2014/10/02 07:47:15, sof wrote: > On 2014/09/30 17:08:49, Mounir Lamouri wrote: > > > ...
6 years, 2 months ago (2014-10-02 08:11:04 UTC) #12
sof
On 2014/10/01 15:58:27, haraken wrote: > LGTM > > It would be great if we ...
6 years, 2 months ago (2014-10-02 08:37:52 UTC) #13
mlamouri (slow - plz ping)
lgtm. Let's get Tim's opinion on the change given that he is owning the battery ...
6 years, 2 months ago (2014-10-02 10:29:19 UTC) #15
sof
On 2014/10/02 10:29:19, Mounir Lamouri wrote: > lgtm. Let's get Tim's opinion on the change ...
6 years, 2 months ago (2014-10-02 11:52:26 UTC) #16
timvolodine
On 2014/10/02 11:52:26, sof wrote: > On 2014/10/02 10:29:19, Mounir Lamouri wrote: > > lgtm. ...
6 years, 2 months ago (2014-10-02 16:22:35 UTC) #17
sof
On 2014/10/02 16:22:35, timvolodine wrote: > On 2014/10/02 11:52:26, sof wrote: > > On 2014/10/02 ...
6 years, 2 months ago (2014-10-02 17:40:55 UTC) #18
sof
Based on timvolodine's general nod of approval :) , I'll go ahead and land this. ...
6 years, 2 months ago (2014-10-02 17:56:43 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/618673002/2
6 years, 2 months ago (2014-10-02 17:57:39 UTC) #21
commit-bot: I haz the power
6 years, 2 months ago (2014-10-02 20:12:41 UTC) #22
Message was sent while issue was closed.
Committed patchset #2 (id:2) as 183158

Powered by Google App Engine
This is Rietveld 408576698