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

Issue 26155003: Add CdmWrapper to support multiple CDM versions in CdmAdapter. (Closed)

Created:
7 years, 2 months ago by xhwang
Modified:
7 years, 2 months ago
Reviewers:
DaleCurtis, ddorwin
CC:
chromium-reviews, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Add CdmWrapper to support multiple CDM versions in CdmAdapter. CdmWrapper wraps different versions of ContentDecryptionModule interfaces and exposes a common interface to the caller. BUG=306647 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=229571

Patch Set 1 #

Patch Set 2 : add cdm_helpers.h #

Total comments: 6

Patch Set 3 : rebase #

Total comments: 11

Patch Set 4 : ddorwin's comments #

Patch Set 5 : rebase only #

Unified diffs Side-by-side diffs Delta from patch set Stats (+219 lines, -10 lines) Patch
M media/cdm/ppapi/cdm_adapter.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M media/cdm/ppapi/cdm_adapter.cc View 1 2 1 chunk +3 lines, -9 lines 0 comments Download
A media/cdm/ppapi/cdm_wrapper.h View 1 2 3 1 chunk +211 lines, -0 lines 0 comments Download
M media/cdm/ppapi/linked_ptr.h View 1 chunk +1 line, -0 lines 0 comments Download
M media/media_cdm.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/widevine/cdm/widevine_cdm.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
xhwang
PTAL https://codereview.chromium.org/26155003/diff/5001/media/cdm/ppapi/cdm_helpers.h File media/cdm/ppapi/cdm_helpers.h (right): https://codereview.chromium.org/26155003/diff/5001/media/cdm/ppapi/cdm_helpers.h#newcode1 media/cdm/ppapi/cdm_helpers.h:1: // Copyright 2013 The Chromium Authors. All rights ...
7 years, 2 months ago (2013-10-15 20:42:32 UTC) #1
DaleCurtis
Copying our chat conversation: I think CdmHelpers is fine, but I'm not sure about CdmAdapter. ...
7 years, 2 months ago (2013-10-17 01:01:57 UTC) #2
xhwang
On 2013/10/17 01:01:57, DaleCurtis wrote: > Copying our chat conversation: I think CdmHelpers is fine, ...
7 years, 2 months ago (2013-10-17 05:53:18 UTC) #3
DaleCurtis
That's correct. Ideally this is temporary though as older versions are deprecated.
7 years, 2 months ago (2013-10-17 18:38:39 UTC) #4
xhwang
On 2013/10/17 18:38:39, DaleCurtis wrote: > That's correct. Ideally this is temporary though as older ...
7 years, 2 months ago (2013-10-17 19:13:54 UTC) #5
DaleCurtis
I find the templates slightly confusing, but if the consensus is in favor I'm happy ...
7 years, 2 months ago (2013-10-17 20:31:05 UTC) #6
DaleCurtis
https://codereview.chromium.org/26155003/diff/5001/media/cdm/ppapi/cdm_wrapper.cc File media/cdm/ppapi/cdm_wrapper.cc (right): https://codereview.chromium.org/26155003/diff/5001/media/cdm/ppapi/cdm_wrapper.cc#newcode220 media/cdm/ppapi/cdm_wrapper.cc:220: class CdmWrapper : public pp::Instance, This being the prototype ...
7 years, 2 months ago (2013-10-17 20:31:57 UTC) #7
xhwang
On 2013/10/17 20:31:05, DaleCurtis wrote: > I find the templates slightly confusing, but if the ...
7 years, 2 months ago (2013-10-17 21:05:01 UTC) #8
DaleCurtis
OIC, yeah that's unfortunate. It could be obscured with a macro though.
7 years, 2 months ago (2013-10-17 22:18:12 UTC) #9
xhwang
On 2013/10/17 22:18:12, DaleCurtis wrote: > OIC, yeah that's unfortunate. It could be obscured with ...
7 years, 2 months ago (2013-10-17 22:25:05 UTC) #10
DaleCurtis
With some liberal use of the ternary operator you can treat it as a hidden ...
7 years, 2 months ago (2013-10-17 22:30:16 UTC) #11
xhwang
Rebased. PTAL again.
7 years, 2 months ago (2013-10-18 21:06:34 UTC) #12
xhwang
On 2013/10/18 21:06:34, xhwang wrote: > Rebased. PTAL again. Since we reverted the CDM DEPS ...
7 years, 2 months ago (2013-10-18 21:07:46 UTC) #13
DaleCurtis
lgtm
7 years, 2 months ago (2013-10-18 21:21:08 UTC) #14
ddorwin
LG overall; just some minor issues. https://codereview.chromium.org/26155003/diff/26001/media/cdm/ppapi/cdm_wrapper.h File media/cdm/ppapi/cdm_wrapper.h (right): https://codereview.chromium.org/26155003/diff/26001/media/cdm/ppapi/cdm_wrapper.h#newcode20 media/cdm/ppapi/cdm_wrapper.h:20: // CDM interface ...
7 years, 2 months ago (2013-10-18 22:17:01 UTC) #15
xhwang
https://codereview.chromium.org/26155003/diff/26001/media/cdm/ppapi/cdm_wrapper.h File media/cdm/ppapi/cdm_wrapper.h (right): https://codereview.chromium.org/26155003/diff/26001/media/cdm/ppapi/cdm_wrapper.h#newcode20 media/cdm/ppapi/cdm_wrapper.h:20: // CDM interface (i.e. ContentDecryptionModule). If such an instance ...
7 years, 2 months ago (2013-10-18 23:03:51 UTC) #16
ddorwin
lgtm https://codereview.chromium.org/26155003/diff/26001/media/cdm/ppapi/linked_ptr.h File media/cdm/ppapi/linked_ptr.h (right): https://codereview.chromium.org/26155003/diff/26001/media/cdm/ppapi/linked_ptr.h#newcode118 media/cdm/ppapi/linked_ptr.h:118: operator T*() const { return value_; } On ...
7 years, 2 months ago (2013-10-18 23:45:55 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/26155003/156001
7 years, 2 months ago (2013-10-19 02:23:28 UTC) #18
commit-bot: I haz the power
7 years, 2 months ago (2013-10-19 15:49:41 UTC) #19
Message was sent while issue was closed.
Change committed as 229571

Powered by Google App Engine
This is Rietveld 408576698