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

Issue 139173012: Move encryptedmedia module to oilpan (Closed)

Created:
6 years, 10 months ago by haraken
Modified:
6 years, 10 months ago
CC:
blink-reviews, feature-media-reviews_chromium.org, philipj_slow, eric.carlson_apple.com, ddorwin, xhwang, jrummell
Visibility:
Public.

Description

Move encryptedmedia module to oilpan This CL also changes the internal field where a persistent handle is stored (for some complicated reason explained below). Previously the persistent handle was stored in the first index of custom internal fields. However, this causes an index conflict in the following scenario: - EventTarget stores its hidden value array in the first index of its custom internal fields. - MediaKeySession stores the persistent handle in the first index of its custom internal fields. - MediaKeySession inherits from EventTarget. - This situation confuses an EventTarget object because the first index of its custom internal fields stores different things depending on subclass types. The easiest way to avoid the confusion is to store the persistent handle into the last index of all internal fields. This CL does that. Note: We're planning to remove the internal field for the persistent handle by sharing one internal field between the persistent handle (if the object is in oilpan) and a C++ pointer of the DOM object (if the object is not in oilpan). BUG=340522 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=166698

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Total comments: 2

Patch Set 8 : #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -31 lines) Patch
M Source/bindings/scripts/code_generator_v8.pm View 1 2 3 4 5 6 7 1 chunk +7 lines, -5 lines 0 comments Download
M Source/bindings/v8/V8DOMWrapper.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M Source/bindings/v8/WrapperTypeInfo.h View 1 2 3 4 5 2 chunks +2 lines, -6 lines 0 comments Download
M Source/core/html/HTMLMediaElement.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/encryptedmedia/MediaKeyMessageEvent.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/encryptedmedia/MediaKeyNeededEvent.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/encryptedmedia/MediaKeySession.h View 1 2 3 chunks +7 lines, -3 lines 0 comments Download
M Source/modules/encryptedmedia/MediaKeySession.cpp View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M Source/modules/encryptedmedia/MediaKeySession.idl View 1 chunk +2 lines, -1 line 0 comments Download
M Source/modules/encryptedmedia/MediaKeys.h View 1 2 3 4 5 6 7 4 chunks +9 lines, -5 lines 4 comments Download
M Source/modules/encryptedmedia/MediaKeys.cpp View 1 2 4 chunks +6 lines, -4 lines 0 comments Download
M Source/modules/encryptedmedia/MediaKeys.idl View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 28 (0 generated)
haraken
https://codereview.chromium.org/139173012/diff/1/Source/modules/encryptedmedia/MediaKeySession.h File Source/modules/encryptedmedia/MediaKeySession.h (right): https://codereview.chromium.org/139173012/diff/1/Source/modules/encryptedmedia/MediaKeySession.h#newcode58 Source/modules/encryptedmedia/MediaKeySession.h:58: REFCOUNTED_EVENT_TARGET(MediaKeySession); This doesn't compile with the following error: ../../third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.h:58:5: ...
6 years, 10 months ago (2014-02-06 12:08:40 UTC) #1
haraken
6 years, 10 months ago (2014-02-06 12:09:06 UTC) #2
Mads Ager (chromium)
https://codereview.chromium.org/139173012/diff/1/Source/modules/encryptedmedia/MediaKeySession.h File Source/modules/encryptedmedia/MediaKeySession.h (right): https://codereview.chromium.org/139173012/diff/1/Source/modules/encryptedmedia/MediaKeySession.h#newcode55 Source/modules/encryptedmedia/MediaKeySession.h:55: : public RefCountedWillBeGarbageCollectedFinalized<MediaKeySession>, public ScriptWrappable, public EventTargetWithInlineData, public ContextLifecycleObserver ...
6 years, 10 months ago (2014-02-06 12:28:46 UTC) #3
haraken
On 2014/02/06 12:28:46, Mads Ager (chromium) wrote: > https://codereview.chromium.org/139173012/diff/1/Source/modules/encryptedmedia/MediaKeySession.h > File Source/modules/encryptedmedia/MediaKeySession.h (right): > > ...
6 years, 10 months ago (2014-02-06 12:36:46 UTC) #4
Mads Ager (chromium)
On 2014/02/06 12:36:46, haraken wrote: > On 2014/02/06 12:28:46, Mads Ager (chromium) wrote: > > ...
6 years, 10 months ago (2014-02-06 12:45:23 UTC) #5
Mads Ager (chromium)
Maybe you can use DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWIllBeRefCountedGarbageCollected<MediaKeySession>) instead? On Thu, Feb 6, 2014 at 1:45 PM, <ager@chromium.org> ...
6 years, 10 months ago (2014-02-06 12:47:43 UTC) #6
haraken
On 2014/02/06 12:47:43, Mads Ager (chromium) wrote: > Maybe you can use > DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWIllBeRefCountedGarbageCollected<MediaKeySession>) > ...
6 years, 10 months ago (2014-02-06 13:14:58 UTC) #7
haraken
Now all tests pass. PTAL. https://codereview.chromium.org/139173012/diff/210001/Source/bindings/scripts/code_generator_v8.pm File Source/bindings/scripts/code_generator_v8.pm (right): https://codereview.chromium.org/139173012/diff/210001/Source/bindings/scripts/code_generator_v8.pm#newcode1074 Source/bindings/scripts/code_generator_v8.pm:1074: # Persistent handle is ...
6 years, 10 months ago (2014-02-07 04:25:00 UTC) #8
tkent
lgtm
6 years, 10 months ago (2014-02-07 05:06:59 UTC) #9
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 10 months ago (2014-02-07 05:07:29 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/139173012/210001
6 years, 10 months ago (2014-02-07 05:07:50 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-07 05:07:54 UTC) #12
commit-bot: I haz the power
Failed to apply patch for Source/bindings/scripts/code_generator_v8.pm: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 10 months ago (2014-02-07 05:07:55 UTC) #13
haraken
The CQ bit was unchecked by haraken@chromium.org
6 years, 10 months ago (2014-02-07 05:08:07 UTC) #14
haraken
https://codereview.chromium.org/139173012/diff/210001/Source/modules/encryptedmedia/MediaKeys.h File Source/modules/encryptedmedia/MediaKeys.h (right): https://codereview.chromium.org/139173012/diff/210001/Source/modules/encryptedmedia/MediaKeys.h#newcode56 Source/modules/encryptedmedia/MediaKeys.h:56: class MediaKeys : public RefCountedWillBeGarbageCollected<MediaKeys>, public ScriptWrappable { I ...
6 years, 10 months ago (2014-02-07 05:21:55 UTC) #15
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 10 months ago (2014-02-07 05:55:13 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/139173012/330001
6 years, 10 months ago (2014-02-07 05:55:29 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-07 07:15:46 UTC) #18
commit-bot: I haz the power
Retried try job too often on win_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_blink_rel&number=26277
6 years, 10 months ago (2014-02-07 07:15:47 UTC) #19
Mads Ager (chromium)
LGTM2 https://codereview.chromium.org/139173012/diff/330001/Source/modules/encryptedmedia/MediaKeys.h File Source/modules/encryptedmedia/MediaKeys.h (right): https://codereview.chromium.org/139173012/diff/330001/Source/modules/encryptedmedia/MediaKeys.h#newcode88 Source/modules/encryptedmedia/MediaKeys.h:88: RefPtrWillBePersistent<MediaKeySession> session; I think this is fine. My ...
6 years, 10 months ago (2014-02-07 07:19:24 UTC) #20
haraken
Thanks for review! https://codereview.chromium.org/139173012/diff/330001/Source/modules/encryptedmedia/MediaKeys.h File Source/modules/encryptedmedia/MediaKeys.h (right): https://codereview.chromium.org/139173012/diff/330001/Source/modules/encryptedmedia/MediaKeys.h#newcode88 Source/modules/encryptedmedia/MediaKeys.h:88: RefPtrWillBePersistent<MediaKeySession> session; On 2014/02/07 07:19:25, Mads ...
6 years, 10 months ago (2014-02-07 07:22:53 UTC) #21
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 10 months ago (2014-02-07 07:23:09 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/139173012/330001
6 years, 10 months ago (2014-02-07 07:23:16 UTC) #23
zerny-chromium
lgtm2 https://codereview.chromium.org/139173012/diff/330001/Source/modules/encryptedmedia/MediaKeys.h File Source/modules/encryptedmedia/MediaKeys.h (right): https://codereview.chromium.org/139173012/diff/330001/Source/modules/encryptedmedia/MediaKeys.h#newcode88 Source/modules/encryptedmedia/MediaKeys.h:88: RefPtrWillBePersistent<MediaKeySession> session; I agree with Mads that this ...
6 years, 10 months ago (2014-02-07 08:30:07 UTC) #24
Mads Ager (chromium)
https://codereview.chromium.org/139173012/diff/330001/Source/modules/encryptedmedia/MediaKeys.h File Source/modules/encryptedmedia/MediaKeys.h (right): https://codereview.chromium.org/139173012/diff/330001/Source/modules/encryptedmedia/MediaKeys.h#newcode88 Source/modules/encryptedmedia/MediaKeys.h:88: RefPtrWillBePersistent<MediaKeySession> session; On 2014/02/07 08:30:07, zerny-chromium wrote: > I ...
6 years, 10 months ago (2014-02-07 08:52:34 UTC) #25
commit-bot: I haz the power
Change committed as 166698
6 years, 10 months ago (2014-02-07 09:25:35 UTC) #26
haraken
On 2014/02/07 08:52:34, Mads Ager (chromium) wrote: > https://codereview.chromium.org/139173012/diff/330001/Source/modules/encryptedmedia/MediaKeys.h > File Source/modules/encryptedmedia/MediaKeys.h (right): > > ...
6 years, 10 months ago (2014-02-07 09:32:35 UTC) #27
Nils Barth (inactive)
6 years, 10 months ago (2014-02-10 07:16:07 UTC) #28
Message was sent while issue was closed.
Python side at:
IDL compiler: sync Python to r166698 (and add test case)
https://codereview.chromium.org/154133003/

Powered by Google App Engine
This is Rietveld 408576698