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

Issue 185993004: Encrypted Media: Confine UUID code to MediaDrmBridge. (Closed)

Created:
6 years, 9 months ago by xhwang
Modified:
6 years, 9 months ago
Reviewers:
Jói, ddorwin, dcheng, boliu
CC:
chromium-reviews, fischman+watch_chromium.org, jam, mcasas+watch_chromium.org, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org, ycheo (away)
Visibility:
Public.

Description

Encrypted Media: Confine UUID code to MediaDrmBridge. Currenly we have UUID in a lot of places in the EME implementation on Chromium for Android. But UUID should really just be an implementation detail of MediaDrmBridge. This CL moves all UUID related code to MediaDrmBridge and uses key system elsewhere. BUG=347596 R=boliu@chromium.org, dcheng@chromium.org, ddorwin@chromium.org, joi@chromium.org TBR=dcheng@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255727

Patch Set 1 #

Patch Set 2 : updated tests #

Total comments: 17

Patch Set 3 : comments addressed #

Total comments: 10

Patch Set 4 : comments addressed #

Total comments: 6

Patch Set 5 : fix webview #

Patch Set 6 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+165 lines, -210 lines) Patch
M android_webview/renderer/aw_key_systems.cc View 1 2 3 4 3 chunks +3 lines, -10 lines 0 comments Download
M chrome/browser/media/encrypted_media_message_filter_android.cc View 1 2 3 4 5 2 chunks +16 lines, -6 lines 0 comments Download
M chrome/common/encrypted_media_messages_android.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/renderer/media/chrome_key_systems.cc View 3 chunks +1 line, -8 lines 0 comments Download
M content/browser/media/android/browser_media_player_manager.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/media/android/browser_media_player_manager.cc View 1 2 3 4 5 5 chunks +22 lines, -17 lines 0 comments Download
M content/browser/media/android/media_drm_credential_manager.cc View 1 2 3 3 chunks +4 lines, -7 lines 0 comments Download
M content/common/media/cdm_messages.h View 1 chunk +1 line, -1 line 0 comments Download
M content/public/renderer/key_system_info.h View 1 chunk +0 lines, -2 lines 0 comments Download
M content/renderer/media/android/proxy_media_keys.cc View 1 2 1 chunk +1 line, -7 lines 0 comments Download
M content/renderer/media/android/renderer_media_player_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/android/renderer_media_player_manager.cc View 1 2 3 4 5 4 chunks +11 lines, -10 lines 0 comments Download
M content/renderer/media/crypto/key_systems.h View 1 chunk +0 lines, -4 lines 0 comments Download
M content/renderer/media/crypto/key_systems.cc View 8 chunks +0 lines, -30 lines 0 comments Download
M content/renderer/media/crypto/key_systems_unittest.cc View 1 4 chunks +1 line, -32 lines 0 comments Download
M media/base/android/media_drm_bridge.h View 1 2 3 4 5 1 chunk +13 lines, -9 lines 0 comments Download
M media/base/android/media_drm_bridge.cc View 1 2 3 4 chunks +45 lines, -25 lines 0 comments Download
M media/base/android/media_source_player.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M media/base/android/media_source_player.cc View 1 2 3 1 chunk +5 lines, -5 lines 0 comments Download
M media/base/android/media_source_player_unittest.cc View 1 2 3 5 chunks +25 lines, -30 lines 0 comments Download
M media/media.gyp View 1 3 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
xhwang
PTAL https://codereview.chromium.org/185993004/diff/20001/media/media.gyp File media/media.gyp (right): https://codereview.chromium.org/185993004/diff/20001/media/media.gyp#newcode916 media/media.gyp:916: '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h', This is for kWidevineKeySystem, which is ugly... ...
6 years, 9 months ago (2014-03-04 00:18:57 UTC) #1
ddorwin
This mostly LG. However, we need less key system-specific code in media_drm_bridge.cc, not more. I'd ...
6 years, 9 months ago (2014-03-04 20:00:56 UTC) #2
xhwang
PTAL again. https://codereview.chromium.org/185993004/diff/20001/content/browser/media/android/browser_media_player_manager.cc File content/browser/media/android/browser_media_player_manager.cc (right): https://codereview.chromium.org/185993004/diff/20001/content/browser/media/android/browser_media_player_manager.cc#newcode45 content/browser/media/android/browser_media_player_manager.cc:45: const size_t kEmeMaxKeySystemSize = 1024; On 2014/03/04 ...
6 years, 9 months ago (2014-03-05 21:52:33 UTC) #3
ddorwin
https://codereview.chromium.org/185993004/diff/40001/chrome/browser/media/encrypted_media_message_filter_android.cc File chrome/browser/media/encrypted_media_message_filter_android.cc (right): https://codereview.chromium.org/185993004/diff/40001/chrome/browser/media/encrypted_media_message_filter_android.cc#newcode74 chrome/browser/media/encrypted_media_message_filter_android.cc:74: SupportedKeySystemResponse* response) { We should be validating SupportedKeySystemResponse here, ...
6 years, 9 months ago (2014-03-05 22:11:29 UTC) #4
xhwang
comments addressed
6 years, 9 months ago (2014-03-06 18:09:44 UTC) #5
xhwang
https://codereview.chromium.org/185993004/diff/40001/chrome/browser/media/encrypted_media_message_filter_android.cc File chrome/browser/media/encrypted_media_message_filter_android.cc (right): https://codereview.chromium.org/185993004/diff/40001/chrome/browser/media/encrypted_media_message_filter_android.cc#newcode74 chrome/browser/media/encrypted_media_message_filter_android.cc:74: SupportedKeySystemResponse* response) { On 2014/03/05 22:11:29, ddorwin wrote: > ...
6 years, 9 months ago (2014-03-06 18:09:57 UTC) #6
xhwang
I'll fix webview code in the next patchset.
6 years, 9 months ago (2014-03-06 18:10:18 UTC) #7
ddorwin
LGTM % nits. Thanks. https://codereview.chromium.org/185993004/diff/60001/chrome/browser/media/encrypted_media_message_filter_android.cc File chrome/browser/media/encrypted_media_message_filter_android.cc (right): https://codereview.chromium.org/185993004/diff/60001/chrome/browser/media/encrypted_media_message_filter_android.cc#newcode20 chrome/browser/media/encrypted_media_message_filter_android.cc:20: const size_t kEmeMaxKeySystemLength = 256; ...
6 years, 9 months ago (2014-03-06 18:28:47 UTC) #8
xhwang
comments addressed
6 years, 9 months ago (2014-03-06 18:53:45 UTC) #9
xhwang
https://codereview.chromium.org/185993004/diff/60001/chrome/browser/media/encrypted_media_message_filter_android.cc File chrome/browser/media/encrypted_media_message_filter_android.cc (right): https://codereview.chromium.org/185993004/diff/60001/chrome/browser/media/encrypted_media_message_filter_android.cc#newcode20 chrome/browser/media/encrypted_media_message_filter_android.cc:20: const size_t kEmeMaxKeySystemLength = 256; On 2014/03/06 18:28:48, ddorwin ...
6 years, 9 months ago (2014-03-06 18:53:48 UTC) #10
xhwang
All changes are pretty trivial and should take <1min to review. OWNERS review request: joi@chromium.org: ...
6 years, 9 months ago (2014-03-06 18:59:26 UTC) #11
boliu
Sorry, not sure how I missed this today. android_webivew lgtm +ycheo fyi
6 years, 9 months ago (2014-03-07 06:05:06 UTC) #12
Jói
//content/public LGTM
6 years, 9 months ago (2014-03-07 12:33:44 UTC) #13
xhwang
TBRing dcheng...
6 years, 9 months ago (2014-03-07 18:02:14 UTC) #14
xhwang
The CQ bit was checked by xhwang@chromium.org
6 years, 9 months ago (2014-03-07 18:02:22 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/185993004/100001
6 years, 9 months ago (2014-03-07 18:03:08 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/185993004/100001
6 years, 9 months ago (2014-03-07 20:20:35 UTC) #17
dcheng
chrome/common/encrypted_media_messages_android.h and content/common/media/cdm_messages.h LGTM
6 years, 9 months ago (2014-03-07 20:55:57 UTC) #18
xhwang
6 years, 9 months ago (2014-03-08 01:07:20 UTC) #19
Message was sent while issue was closed.
Committed patchset #6 manually as r255727 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698