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

Issue 660673002: Introduce CdmFactory interface. (Closed)

Created:
6 years, 2 months ago by xhwang
Modified:
6 years, 2 months ago
Reviewers:
jrummell, *ddorwin, jamesr
CC:
chromium-reviews, creis+watch_chromium.org, eme-reviews_chromium.org, posciak+watch_chromium.org, avayvod+watch_chromium.org, nasko+codewatch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@move_result_promise
Project:
chromium
Visibility:
Public.

Description

Introduce CdmFactory interface. This is a preparation for media code to call into content code to create the CDMs, so that we could have EME support without depending on content code. BUG=422730 Committed: https://crrev.com/00f7cdc52b6fcab8deda7c5e266c2db8ba60a28a Cr-Commit-Position: refs/heads/master@{#300296}

Patch Set 1 #

Total comments: 36

Patch Set 2 : comments addressed #

Total comments: 14

Patch Set 3 : rebase only #

Total comments: 2

Patch Set 4 : Comments partially addressed. #

Patch Set 5 : Fix android. #

Total comments: 2

Patch Set 6 : Pass CdmFactory by pointer. #

Total comments: 12

Patch Set 7 : comments addressed #

Patch Set 8 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -307 lines) Patch
M content/content_renderer.gypi View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/media/android/webmediaplayer_android.cc View 1 2 3 4 5 6 3 chunks +5 lines, -2 lines 0 comments Download
M content/renderer/media/cdm_session_adapter.h View 1 2 3 4 5 2 chunks +7 lines, -16 lines 0 comments Download
M content/renderer/media/cdm_session_adapter.cc View 1 2 3 4 5 2 chunks +16 lines, -15 lines 0 comments Download
D content/renderer/media/crypto/content_decryption_module_factory.h View 1 chunk +0 lines, -48 lines 0 comments Download
D content/renderer/media/crypto/content_decryption_module_factory.cc View 1 1 chunk +0 lines, -79 lines 0 comments Download
M content/renderer/media/crypto/encrypted_media_player_support_impl.cc View 1 2 3 4 5 6 5 chunks +13 lines, -11 lines 0 comments Download
M content/renderer/media/crypto/proxy_decryptor.h View 1 2 3 4 5 6 chunks +17 lines, -24 lines 0 comments Download
M content/renderer/media/crypto/proxy_decryptor.cc View 1 2 3 4 5 4 chunks +22 lines, -45 lines 0 comments Download
A + content/renderer/media/crypto/render_cdm_factory.h View 1 2 3 4 5 6 7 2 chunks +30 lines, -13 lines 0 comments Download
A + content/renderer/media/crypto/render_cdm_factory.cc View 1 2 3 4 5 4 chunks +24 lines, -9 lines 0 comments Download
M content/renderer/media/webcontentdecryptionmodule_impl.h View 1 2 3 4 5 3 chunks +3 lines, -10 lines 0 comments Download
M content/renderer/media/webcontentdecryptionmodule_impl.cc View 1 2 3 4 5 3 chunks +2 lines, -24 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 3 chunks +12 lines, -6 lines 0 comments Download
M media/base/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A media/base/cdm_factory.h View 1 2 3 4 5 1 chunk +42 lines, -0 lines 0 comments Download
A + media/base/cdm_factory.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M media/media.gyp View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (5 generated)
xhwang
This CL is based on https://codereview.chromium.org/651113002/. It's another step towards moving a lot of stuff ...
6 years, 2 months ago (2014-10-15 23:33:59 UTC) #2
ddorwin
I like the reduction of ifdef's. Hopefully we can remove more (cdm_id) in a future ...
6 years, 2 months ago (2014-10-16 17:32:52 UTC) #4
xhwang
comments addressed
6 years, 2 months ago (2014-10-16 20:08:11 UTC) #5
xhwang
Thanks for the comments. PTAL again! https://codereview.chromium.org/660673002/diff/1/content/content_renderer.gypi File content/content_renderer.gypi (right): https://codereview.chromium.org/660673002/diff/1/content/content_renderer.gypi#newcode264 content/content_renderer.gypi:264: 'renderer/media/crypto/render_cdm_factory.cc', On 2014/10/16 ...
6 years, 2 months ago (2014-10-16 20:08:40 UTC) #6
ddorwin
LG overall. Note there are a few comments in PS1. https://codereview.chromium.org/660673002/diff/1/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (right): https://codereview.chromium.org/660673002/diff/1/content/renderer/media/android/webmediaplayer_android.cc#newcode28 ...
6 years, 2 months ago (2014-10-16 20:33:20 UTC) #7
xhwang
rebase only
6 years, 2 months ago (2014-10-16 21:43:08 UTC) #8
jrummell
https://codereview.chromium.org/660673002/diff/20001/content/renderer/media/crypto/render_cdm_factory.cc File content/renderer/media/crypto/render_cdm_factory.cc (right): https://codereview.chromium.org/660673002/diff/20001/content/renderer/media/crypto/render_cdm_factory.cc#newcode51 content/renderer/media/crypto/render_cdm_factory.cc:51: // TODO(jrummell): Pass |security_origin| to all constructors. On 2014/10/16 ...
6 years, 2 months ago (2014-10-16 22:40:33 UTC) #9
xhwang
Thanks, PTAL again. https://codereview.chromium.org/660673002/diff/1/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (right): https://codereview.chromium.org/660673002/diff/1/content/renderer/media/android/webmediaplayer_android.cc#newcode28 content/renderer/media/android/webmediaplayer_android.cc:28: #include "content/renderer/media/crypto/render_cdm_factory.h" On 2014/10/16 20:33:20, ddorwin ...
6 years, 2 months ago (2014-10-17 00:11:49 UTC) #10
ddorwin
I don't really like the const thing even though it simplifies a lot of code. ...
6 years, 2 months ago (2014-10-17 01:41:55 UTC) #11
xhwang
comments addressed
6 years, 2 months ago (2014-10-17 03:47:34 UTC) #12
xhwang
https://codereview.chromium.org/660673002/diff/80001/content/renderer/media/crypto/render_cdm_factory.h File content/renderer/media/crypto/render_cdm_factory.h (right): https://codereview.chromium.org/660673002/diff/80001/content/renderer/media/crypto/render_cdm_factory.h#newcode56 content/renderer/media/crypto/render_cdm_factory.h:56: RendererCdmManager* const manager_; On 2014/10/17 01:41:55, ddorwin wrote: > ...
6 years, 2 months ago (2014-10-17 03:54:21 UTC) #13
xhwang
jamesr@: Please OWNERS review changes in content/renderer/render_frame_impl.cc.
6 years, 2 months ago (2014-10-17 03:56:32 UTC) #15
ddorwin
Thanks. LGTM with comments. https://codereview.chromium.org/660673002/diff/120001/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (right): https://codereview.chromium.org/660673002/diff/120001/content/renderer/media/android/webmediaplayer_android.cc#newcode1528 content/renderer/media/android/webmediaplayer_android.cc:1528: scoped_ptr<media::CdmFactory> cdm_factory( You could also ...
6 years, 2 months ago (2014-10-17 16:32:04 UTC) #17
xhwang
comments addressed
6 years, 2 months ago (2014-10-17 18:54:53 UTC) #18
xhwang
https://codereview.chromium.org/660673002/diff/120001/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (right): https://codereview.chromium.org/660673002/diff/120001/content/renderer/media/android/webmediaplayer_android.cc#newcode1528 content/renderer/media/android/webmediaplayer_android.cc:1528: scoped_ptr<media::CdmFactory> cdm_factory( On 2014/10/17 16:32:04, ddorwin wrote: > You ...
6 years, 2 months ago (2014-10-17 20:09:23 UTC) #19
ddorwin
LGTM with comment. Thanks. https://codereview.chromium.org/660673002/diff/120001/content/renderer/media/crypto/render_cdm_factory.h File content/renderer/media/crypto/render_cdm_factory.h (right): https://codereview.chromium.org/660673002/diff/120001/content/renderer/media/crypto/render_cdm_factory.h#newcode31 content/renderer/media/crypto/render_cdm_factory.h:31: explicit RenderCdmFactory(RendererCdmManager* manager); On 2014/10/17 ...
6 years, 2 months ago (2014-10-19 06:07:26 UTC) #20
xhwang
comments addressed
6 years, 2 months ago (2014-10-20 16:36:23 UTC) #21
xhwang
https://codereview.chromium.org/660673002/diff/120001/content/renderer/media/crypto/render_cdm_factory.h File content/renderer/media/crypto/render_cdm_factory.h (right): https://codereview.chromium.org/660673002/diff/120001/content/renderer/media/crypto/render_cdm_factory.h#newcode31 content/renderer/media/crypto/render_cdm_factory.h:31: explicit RenderCdmFactory(RendererCdmManager* manager); On 2014/10/19 06:07:25, ddorwin wrote: > ...
6 years, 2 months ago (2014-10-20 16:36:29 UTC) #22
xhwang
jamesr: Please OWNERS review changes in content/renderer/render_frame_impl.cc. The change in that file is pretty simple ...
6 years, 2 months ago (2014-10-20 16:38:01 UTC) #23
jamesr
That's a lot of ifdefs. content/renderer/render_frame_impl.cc lgtm
6 years, 2 months ago (2014-10-20 17:09:57 UTC) #24
xhwang
On 2014/10/20 17:09:57, jamesr wrote: > That's a lot of ifdefs. Agreed :( I'll think ...
6 years, 2 months ago (2014-10-20 17:12:12 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/660673002/160001
6 years, 2 months ago (2014-10-20 17:12:45 UTC) #27
commit-bot: I haz the power
Committed patchset #8 (id:160001)
6 years, 2 months ago (2014-10-20 17:50:18 UTC) #28
commit-bot: I haz the power
6 years, 2 months ago (2014-10-20 17:51:17 UTC) #29
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/00f7cdc52b6fcab8deda7c5e266c2db8ba60a28a
Cr-Commit-Position: refs/heads/master@{#300296}

Powered by Google App Engine
This is Rietveld 408576698