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

Issue 314113008: Oilpan: have MediaController weakly refer to its media elements. (Closed)

Created:
6 years, 6 months ago by sof
Modified:
6 years, 6 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, philipj_slow, gasubic, fs, eric.carlson_apple.com, feature-media-reviews_chromium.org, dglazkov+blink, nessy, vcarbune.chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Oilpan: have MediaController weakly refer to its media elements. Simplify finalization of 'slaved' media elements by not requiring them to unregister with their MediaController, but have it (the controller) weakly refer to them instead. Previously, a RefPtr<> was kept on the media element to make that unregistration safe during finalization. This is no longer needed, and a simpler Member reference from the media element is used instead. R=haraken@chromium.org,ager@chromium.org,acolwell@chromium.org BUG=357163 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175930

Patch Set 1 #

Total comments: 5

Patch Set 2 : Use add() #

Total comments: 3

Patch Set 3 : Add FIXME (crbug.com/383072) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -42 lines) Patch
M Source/core/html/HTMLMediaElement.h View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 2 4 chunks +4 lines, -3 lines 0 comments Download
M Source/core/html/MediaController.h View 1 2 3 chunks +9 lines, -2 lines 0 comments Download
M Source/core/html/MediaController.cpp View 1 17 chunks +47 lines, -34 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
sof
Please take a look. Just carrying over the MediaController change made in https://codereview.chromium.org/302093011/
6 years, 6 months ago (2014-06-06 07:12:58 UTC) #1
haraken
LGTM https://codereview.chromium.org/314113008/diff/1/Source/core/html/MediaController.h File Source/core/html/MediaController.h (right): https://codereview.chromium.org/314113008/diff/1/Source/core/html/MediaController.h#newcode111 Source/core/html/MediaController.h:111: typedef WillBeHeapLinkedHashSet<RawPtrWillBeWeakMember<HTMLMediaElement> > MediaElementSequence; I'm not sure if ...
6 years, 6 months ago (2014-06-06 07:27:21 UTC) #2
sof
https://codereview.chromium.org/314113008/diff/1/Source/core/html/MediaController.h File Source/core/html/MediaController.h (right): https://codereview.chromium.org/314113008/diff/1/Source/core/html/MediaController.h#newcode111 Source/core/html/MediaController.h:111: typedef WillBeHeapLinkedHashSet<RawPtrWillBeWeakMember<HTMLMediaElement> > MediaElementSequence; On 2014/06/06 07:27:21, haraken wrote: ...
6 years, 6 months ago (2014-06-06 07:32:46 UTC) #3
haraken
https://codereview.chromium.org/314113008/diff/1/Source/core/html/MediaController.h File Source/core/html/MediaController.h (right): https://codereview.chromium.org/314113008/diff/1/Source/core/html/MediaController.h#newcode111 Source/core/html/MediaController.h:111: typedef WillBeHeapLinkedHashSet<RawPtrWillBeWeakMember<HTMLMediaElement> > MediaElementSequence; On 2014/06/06 07:32:45, sof wrote: ...
6 years, 6 months ago (2014-06-06 07:33:25 UTC) #4
Mads Ager (chromium)
LGTM This keep the current behavior. I can't really figure out if this could have ...
6 years, 6 months ago (2014-06-06 08:49:08 UTC) #5
sof
On 2014/06/06 08:49:08, Mads Ager (chromium) wrote: > LGTM > > This keep the current ...
6 years, 6 months ago (2014-06-06 09:36:00 UTC) #6
sof
While https://codereview.chromium.org/302093011/#msg21 sounded positive wrt this change, I will wait for acolwell's approval/feedback here. https://codereview.chromium.org/314113008/diff/1/Source/core/html/MediaController.cpp ...
6 years, 6 months ago (2014-06-06 12:37:00 UTC) #7
acolwell GONE FROM CHROMIUM
looks good. Just one question. https://codereview.chromium.org/314113008/diff/20001/Source/core/html/MediaController.h File Source/core/html/MediaController.h (right): https://codereview.chromium.org/314113008/diff/20001/Source/core/html/MediaController.h#newcode111 Source/core/html/MediaController.h:111: typedef WillBeHeapLinkedHashSet<RawPtrWillBeWeakMember<HTMLMediaElement> > MediaElementSequence; ...
6 years, 6 months ago (2014-06-07 00:04:50 UTC) #8
haraken
https://codereview.chromium.org/314113008/diff/20001/Source/core/html/MediaController.h File Source/core/html/MediaController.h (right): https://codereview.chromium.org/314113008/diff/20001/Source/core/html/MediaController.h#newcode111 Source/core/html/MediaController.h:111: typedef WillBeHeapLinkedHashSet<RawPtrWillBeWeakMember<HTMLMediaElement> > MediaElementSequence; > I'm a little fuzzy ...
6 years, 6 months ago (2014-06-07 03:59:00 UTC) #9
sof
https://codereview.chromium.org/314113008/diff/20001/Source/core/html/MediaController.h File Source/core/html/MediaController.h (right): https://codereview.chromium.org/314113008/diff/20001/Source/core/html/MediaController.h#newcode111 Source/core/html/MediaController.h:111: typedef WillBeHeapLinkedHashSet<RawPtrWillBeWeakMember<HTMLMediaElement> > MediaElementSequence; On 2014/06/07 00:04:50, acolwell wrote: ...
6 years, 6 months ago (2014-06-07 05:33:30 UTC) #10
sof
On 2014/06/07 05:33:30, sof wrote: > https://codereview.chromium.org/314113008/diff/20001/Source/core/html/MediaController.h > File Source/core/html/MediaController.h (right): > > https://codereview.chromium.org/314113008/diff/20001/Source/core/html/MediaController.h#newcode111 > ...
6 years, 6 months ago (2014-06-09 20:00:30 UTC) #11
haraken
On 2014/06/09 20:00:30, sof wrote: > On 2014/06/07 05:33:30, sof wrote: > > > https://codereview.chromium.org/314113008/diff/20001/Source/core/html/MediaController.h ...
6 years, 6 months ago (2014-06-09 23:14:14 UTC) #12
Mads Ager (chromium)
On 2014/06/09 23:14:14, haraken wrote: > On 2014/06/09 20:00:30, sof wrote: > > On 2014/06/07 ...
6 years, 6 months ago (2014-06-10 06:12:04 UTC) #13
sof
On 2014/06/10 06:12:04, Mads Ager (chromium) wrote: > On 2014/06/09 23:14:14, haraken wrote: > > ...
6 years, 6 months ago (2014-06-10 06:17:50 UTC) #14
acolwell GONE FROM CHROMIUM
lgtm
6 years, 6 months ago (2014-06-10 14:58:31 UTC) #15
sof
On 2014/06/10 14:58:31, acolwell wrote: > lgtm Thanks all for the reviews. Created http://crbug.com/383072 + ...
6 years, 6 months ago (2014-06-10 20:49:35 UTC) #16
sof
The CQ bit was checked by sigbjornf@opera.com
6 years, 6 months ago (2014-06-10 20:49:41 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/314113008/40001
6 years, 6 months ago (2014-06-10 20:50:08 UTC) #18
commit-bot: I haz the power
6 years, 6 months ago (2014-06-10 23:32:42 UTC) #19
Message was sent while issue was closed.
Change committed as 175930

Powered by Google App Engine
This is Rietveld 408576698