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

Issue 253593002: Componentize EncryptedMediaMessageFilter and rename it CdmMessageFilter. (Closed)

Created:
6 years, 8 months ago by ycheo (away)
Modified:
6 years, 7 months ago
CC:
chromium-reviews, creis+watch_chromium.org, fischman+watch_chromium.org, jam, nasko+codewatch_chromium.org, avayvod+watch_chromium.org, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org, scherkus (not reviewing)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Componentize EncryptedMediaMessageFilter and rename it CdmMessageFilter. The motivation is to reuse the Widevine keysystem registration logic in Android Webview. BUG=322395 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269297

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressed jam's comments. #

Total comments: 9

Patch Set 3 : Componetized EncryptedMediaMessageFilter. #

Total comments: 20

Patch Set 4 : Renamed the component to 'cdm' and addresed the reviewers' comments #

Total comments: 12

Patch Set 5 : Addressed the reviewers' comments. #

Total comments: 4

Patch Set 6 : Addressed ddorwin's comments. #

Patch Set 7 : Rebased. #

Total comments: 2

Patch Set 8 : Fixed the dependency in gyp. #

Patch Set 9 : Rebased & add DEPS in cdm/ and cdm/common/. #

Patch Set 10 : Fixed the empty library problem in macos build. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+266 lines, -372 lines) Patch
M android_webview/android_webview.gyp View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M android_webview/browser/DEPS View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/browser/aw_content_browser_client.cc View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M android_webview/renderer/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/renderer/aw_key_systems.cc View 1 2 3 1 chunk +3 lines, -35 lines 0 comments Download
M chrome/browser/DEPS View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 3 chunks +2 lines, -2 lines 0 comments Download
D chrome/browser/media/encrypted_media_message_filter_android.h View 1 chunk +0 lines, -43 lines 0 comments Download
D chrome/browser/media/encrypted_media_message_filter_android.cc View 1 2 3 1 chunk +0 lines, -115 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 2 chunks +1 line, -2 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/common_message_generator.h View 1 chunk +0 lines, -4 lines 0 comments Download
D chrome/common/encrypted_media_messages_android.h View 1 1 chunk +0 lines, -36 lines 0 comments Download
M chrome/renderer/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/media/chrome_key_systems.cc View 1 2 3 4 5 5 chunks +15 lines, -109 lines 0 comments Download
A components/cdm.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +62 lines, -0 lines 0 comments Download
A + components/cdm/DEPS View 1 2 3 4 5 6 7 8 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/cdm/OWNERS View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
A + components/cdm/browser/DEPS View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A + components/cdm/browser/cdm_message_filter_android.h View 1 2 3 4 3 chunks +9 lines, -9 lines 0 comments Download
A + components/cdm/browser/cdm_message_filter_android.cc View 1 2 3 4 5 chunks +10 lines, -10 lines 0 comments Download
A + components/cdm/common/DEPS View 1 2 3 4 5 6 7 8 0 chunks +-1 lines, --1 lines 0 comments Download
A components/cdm/common/OWNERS View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
A components/cdm/common/cdm_message_generator.h View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
A + components/cdm/common/cdm_message_generator.cc View 1 2 3 4 1 chunk +6 lines, -6 lines 0 comments Download
A + components/cdm/common/cdm_messages_android.h View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/cdm/renderer/DEPS View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
A components/cdm/renderer/widevine_key_systems.h View 1 2 3 4 1 chunk +33 lines, -0 lines 0 comments Download
A components/cdm/renderer/widevine_key_systems.cc View 1 2 3 4 5 1 chunk +93 lines, -0 lines 0 comments Download
M components/components.gyp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 37 (0 generated)
ycheo (away)
PTAL. @ddorwin, qinmin, xhwang for all. @tsepez for ipc. @jam for /chrome, /content.
6 years, 8 months ago (2014-04-25 12:35:24 UTC) #1
jam
https://codereview.chromium.org/253593002/diff/1/chrome/renderer/media/DEPS File chrome/renderer/media/DEPS (right): https://codereview.chromium.org/253593002/diff/1/chrome/renderer/media/DEPS#newcode2 chrome/renderer/media/DEPS:2: "+content/common/media", # For media IPC messages. chrome can never ...
6 years, 8 months ago (2014-04-25 17:17:56 UTC) #2
ycheo (away)
https://codereview.chromium.org/253593002/diff/1/chrome/renderer/media/DEPS File chrome/renderer/media/DEPS (right): https://codereview.chromium.org/253593002/diff/1/chrome/renderer/media/DEPS#newcode2 chrome/renderer/media/DEPS:2: "+content/common/media", # For media IPC messages. On 2014/04/25 17:17:56, ...
6 years, 7 months ago (2014-04-28 16:09:42 UTC) #3
Tom Sepez
Messages in and of themselves are LGTM from a security perspective, but be sure to ...
6 years, 7 months ago (2014-04-28 18:21:52 UTC) #4
ddorwin
The Android IPC to get key systems supported by the platform should probably be in ...
6 years, 7 months ago (2014-04-28 18:47:44 UTC) #5
ddorwin
Really, the IPC is in the correct location (chrome/) already. This keeps as much code ...
6 years, 7 months ago (2014-04-28 19:02:54 UTC) #6
boliu
On 2014/04/28 19:02:54, ddorwin wrote: > Are there other places where AW and Chrome need ...
6 years, 7 months ago (2014-04-28 22:33:42 UTC) #7
ycheo (away)
On 2014/04/28 22:33:42, boliu wrote: > On 2014/04/28 19:02:54, ddorwin wrote: > > Are there ...
6 years, 7 months ago (2014-04-28 23:30:59 UTC) #8
ddorwin
On 2014/04/28 23:30:59, Yuncheol Heo wrote: > On 2014/04/28 22:33:42, boliu wrote: > > On ...
6 years, 7 months ago (2014-04-29 00:26:24 UTC) #9
xhwang
On 2014/04/29 00:26:24, ddorwin wrote: > On 2014/04/28 23:30:59, Yuncheol Heo wrote: > > On ...
6 years, 7 months ago (2014-04-29 00:43:27 UTC) #10
ycheo (away)
https://codereview.chromium.org/253593002/diff/30001/content/public/renderer/key_system_info.h File content/public/renderer/key_system_info.h (right): https://codereview.chromium.org/253593002/diff/30001/content/public/renderer/key_system_info.h#newcode38 content/public/renderer/key_system_info.h:38: static KeySystemInfo Build(const char* key_system, On 2014/04/28 18:47:45, ddorwin ...
6 years, 7 months ago (2014-04-29 00:49:52 UTC) #11
ddorwin
https://codereview.chromium.org/253593002/diff/30001/content/public/renderer/key_system_info.h File content/public/renderer/key_system_info.h (right): https://codereview.chromium.org/253593002/diff/30001/content/public/renderer/key_system_info.h#newcode38 content/public/renderer/key_system_info.h:38: static KeySystemInfo Build(const char* key_system, On 2014/04/29 00:49:52, Yuncheol ...
6 years, 7 months ago (2014-04-29 00:53:11 UTC) #12
ycheo (away)
Hi reviewers, The componetized version is ready. PTAL.
6 years, 7 months ago (2014-04-30 09:05:58 UTC) #13
ycheo (away)
On 2014/04/30 09:05:58, Yuncheol Heo wrote: > Hi reviewers, > > The componetized version is ...
6 years, 7 months ago (2014-05-01 21:52:56 UTC) #14
xhwang
Generally looking pretty good. Just a couple of comments. https://codereview.chromium.org/253593002/diff/90001/chrome/renderer/media/chrome_key_systems.cc File chrome/renderer/media/chrome_key_systems.cc (right): https://codereview.chromium.org/253593002/diff/90001/chrome/renderer/media/chrome_key_systems.cc#newcode154 chrome/renderer/media/chrome_key_systems.cc:154: ...
6 years, 7 months ago (2014-05-01 22:41:21 UTC) #15
ycheo (away)
https://codereview.chromium.org/253593002/diff/90001/chrome/renderer/media/chrome_key_systems.cc File chrome/renderer/media/chrome_key_systems.cc (right): https://codereview.chromium.org/253593002/diff/90001/chrome/renderer/media/chrome_key_systems.cc#newcode154 chrome/renderer/media/chrome_key_systems.cc:154: static bool IsWidevineCdmAvailable(SupportedCodecs* supported_codecs) { On 2014/05/01 22:41:22, xhwang ...
6 years, 7 months ago (2014-05-01 23:27:31 UTC) #16
xhwang
https://codereview.chromium.org/253593002/diff/90001/chrome/renderer/media/chrome_key_systems.cc File chrome/renderer/media/chrome_key_systems.cc (right): https://codereview.chromium.org/253593002/diff/90001/chrome/renderer/media/chrome_key_systems.cc#newcode154 chrome/renderer/media/chrome_key_systems.cc:154: static bool IsWidevineCdmAvailable(SupportedCodecs* supported_codecs) { On 2014/05/01 23:27:32, Yuncheol ...
6 years, 7 months ago (2014-05-02 00:22:30 UTC) #17
ycheo (away)
https://codereview.chromium.org/253593002/diff/90001/chrome/renderer/media/chrome_key_systems.cc File chrome/renderer/media/chrome_key_systems.cc (right): https://codereview.chromium.org/253593002/diff/90001/chrome/renderer/media/chrome_key_systems.cc#newcode154 chrome/renderer/media/chrome_key_systems.cc:154: static bool IsWidevineCdmAvailable(SupportedCodecs* supported_codecs) { On 2014/05/02 00:22:31, xhwang ...
6 years, 7 months ago (2014-05-02 00:30:25 UTC) #18
xhwang
On 2014/05/02 00:30:25, Yuncheol Heo wrote: > https://codereview.chromium.org/253593002/diff/90001/chrome/renderer/media/chrome_key_systems.cc > File chrome/renderer/media/chrome_key_systems.cc (right): > > https://codereview.chromium.org/253593002/diff/90001/chrome/renderer/media/chrome_key_systems.cc#newcode154 ...
6 years, 7 months ago (2014-05-02 00:48:25 UTC) #19
ddorwin
https://codereview.chromium.org/253593002/diff/90001/chrome/renderer/media/chrome_key_systems.cc File chrome/renderer/media/chrome_key_systems.cc (right): https://codereview.chromium.org/253593002/diff/90001/chrome/renderer/media/chrome_key_systems.cc#newcode140 chrome/renderer/media/chrome_key_systems.cc:140: if (codecs[i] == kCdmSupportedCodecVorbis) These constants are currently defined ...
6 years, 7 months ago (2014-05-02 01:12:57 UTC) #20
xhwang
https://codereview.chromium.org/253593002/diff/90001/components/encrypted_media.gypi File components/encrypted_media.gypi (right): https://codereview.chromium.org/253593002/diff/90001/components/encrypted_media.gypi#newcode1 components/encrypted_media.gypi:1: # Copyright 2014 The Chromium Authors. All rights reserved. ...
6 years, 7 months ago (2014-05-02 01:18:43 UTC) #21
ycheo (away)
https://codereview.chromium.org/253593002/diff/90001/components/encrypted_media.gypi File components/encrypted_media.gypi (right): https://codereview.chromium.org/253593002/diff/90001/components/encrypted_media.gypi#newcode1 components/encrypted_media.gypi:1: # Copyright 2014 The Chromium Authors. All rights reserved. ...
6 years, 7 months ago (2014-05-02 01:39:33 UTC) #22
ycheo (away)
I changed that 'cdm' component only has the android things. So, I wonder I need ...
6 years, 7 months ago (2014-05-02 10:05:46 UTC) #23
xhwang
This looks good to me. Just a few nit comments. Also, next time, please keep ...
6 years, 7 months ago (2014-05-02 17:44:19 UTC) #24
ddorwin
Thanks. https://codereview.chromium.org/253593002/diff/110001/chrome/renderer/media/chrome_key_systems.cc File chrome/renderer/media/chrome_key_systems.cc (right): https://codereview.chromium.org/253593002/diff/110001/chrome/renderer/media/chrome_key_systems.cc#newcode135 chrome/renderer/media/chrome_key_systems.cc:135: void GetSupportedCodecs( Improvement: We should rename this to ...
6 years, 7 months ago (2014-05-02 17:58:55 UTC) #25
ycheo (away)
Please take another look at the CL. https://codereview.chromium.org/253593002/diff/110001/chrome/renderer/media/chrome_key_systems.cc File chrome/renderer/media/chrome_key_systems.cc (right): https://codereview.chromium.org/253593002/diff/110001/chrome/renderer/media/chrome_key_systems.cc#newcode135 chrome/renderer/media/chrome_key_systems.cc:135: void GetSupportedCodecs( ...
6 years, 7 months ago (2014-05-05 10:15:08 UTC) #26
ddorwin
Thanks. Changes for my comments LG. I'll let the others complete the review. https://codereview.chromium.org/253593002/diff/130001/chrome/renderer/media/chrome_key_systems.cc File ...
6 years, 7 months ago (2014-05-05 17:20:24 UTC) #27
xhwang
lgtm, thanks!
6 years, 7 months ago (2014-05-05 17:47:52 UTC) #28
ycheo (away)
PTAL. @jochen, Please review changes in: compontents/* @jam, Please review changes in: chrome/* @boliu, Please ...
6 years, 7 months ago (2014-05-06 07:16:21 UTC) #29
jochen (gone - plz use gerrit)
lgtm with comments https://codereview.chromium.org/253593002/diff/170001/components/cdm/browser/DEPS File components/cdm/browser/DEPS (right): https://codereview.chromium.org/253593002/diff/170001/components/cdm/browser/DEPS#newcode3 components/cdm/browser/DEPS:3: "+media/base/android", you should list that as ...
6 years, 7 months ago (2014-05-06 09:48:04 UTC) #30
boliu
android_webview lgtm
6 years, 7 months ago (2014-05-06 21:49:59 UTC) #31
ycheo (away)
https://codereview.chromium.org/253593002/diff/170001/components/cdm/browser/DEPS File components/cdm/browser/DEPS (right): https://codereview.chromium.org/253593002/diff/170001/components/cdm/browser/DEPS#newcode3 components/cdm/browser/DEPS:3: "+media/base/android", On 2014/05/06 09:48:04, jochen wrote: > you should ...
6 years, 7 months ago (2014-05-06 23:24:14 UTC) #32
ycheo (away)
@jam, Could you review the changes in chrome/* again?
6 years, 7 months ago (2014-05-07 12:54:47 UTC) #33
jam
chrome lgtm
6 years, 7 months ago (2014-05-08 07:25:01 UTC) #34
ycheo (away)
The CQ bit was checked by ycheo@chromium.org
6 years, 7 months ago (2014-05-08 10:36:11 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ycheo@chromium.org/253593002/310001
6 years, 7 months ago (2014-05-08 10:40:03 UTC) #36
commit-bot: I haz the power
6 years, 7 months ago (2014-05-09 14:54:46 UTC) #37
Message was sent while issue was closed.
Change committed as 269297

Powered by Google App Engine
This is Rietveld 408576698