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

Issue 1408793009: media: Remove BrowserCdmFactory inferface. (Closed)

Created:
5 years, 1 month ago by xhwang
Modified:
5 years, 1 month ago
Reviewers:
jrummell, halliwell, nasko
CC:
chromium-reviews, posciak+watch_chromium.org, feature-media-reviews_chromium.org, avayvod+watch_chromium.org, mcasas+watch_chromium.org, mlamouri+watch-media_chromium.org, Tima Vaisburd, ddorwin
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

media: Remove BrowserCdmFactory inferface. BrowserCdmFactory interface was introduced as the browser side factory to create BrowserCdm. Now BrowserCdm has been merged into MediaKeys interface, this CL merges BrowserCdmFactory into the more generic CdmFactory interface. This CL also changes how BrowserCdmFactory is registered/created on Android and on Cast. With this CL, we use the same AndroidCdmFactory to create MediaDrmBridge when it is hosted: - in the browser process using BrowserCdmManager, or - in the GPU process using MojoCdmService. BUG=521731 TEST=Tested MediaDrmBridge creation in the browser and GPU process on Android. Committed: https://crrev.com/fac3c5e704ff0f2ab04982d372fc70e419a41da0 Cr-Commit-Position: refs/heads/master@{#358390}

Patch Set 1 : cp browser_cdm_factory_android.cc android_cdm_factory.cc #

Patch Set 2 : real changes #

Total comments: 2

Patch Set 3 : comments addressed #

Patch Set 4 : Add comment for DEPS change. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+245 lines, -400 lines) Patch
M chromecast/browser/cast_browser_main_parts.cc View 1 2 chunks +0 lines, -7 lines 0 comments Download
M chromecast/browser/cast_content_browser_client.h View 1 2 chunks +1 line, -4 lines 0 comments Download
M chromecast/browser/cast_content_browser_client.cc View 1 2 4 chunks +13 lines, -5 lines 0 comments Download
M chromecast/browser/media/cast_browser_cdm_factory.h View 1 2 chunks +9 lines, -8 lines 0 comments Download
M chromecast/browser/media/cast_browser_cdm_factory.cc View 1 1 chunk +32 lines, -23 lines 0 comments Download
M content/browser/media/cdm/browser_cdm_manager.h View 1 2 4 chunks +17 lines, -8 lines 0 comments Download
M content/browser/media/cdm/browser_cdm_manager.cc View 1 2 5 chunks +63 lines, -32 lines 0 comments Download
M content/public/browser/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 chunks +8 lines, -0 lines 0 comments Download
M content/public/browser/content_browser_client.cc View 1 2 chunks +5 lines, -0 lines 0 comments Download
M media/BUILD.gn View 1 1 chunk +0 lines, -2 lines 0 comments Download
M media/base/BUILD.gn View 1 1 chunk +0 lines, -7 lines 0 comments Download
M media/base/android/BUILD.gn View 1 1 chunk +2 lines, -2 lines 0 comments Download
A + media/base/android/android_cdm_factory.h View 1 2 chunks +5 lines, -4 lines 0 comments Download
A media/base/android/android_cdm_factory.cc View 1 1 chunk +85 lines, -0 lines 0 comments Download
D media/base/android/browser_cdm_factory_android.h View 1 1 chunk +0 lines, -34 lines 0 comments Download
D media/base/android/browser_cdm_factory_android.cc View 1 1 chunk +0 lines, -60 lines 0 comments Download
D media/base/browser_cdm_factory.h View 1 1 chunk +0 lines, -56 lines 0 comments Download
D media/base/browser_cdm_factory.cc View 1 1 chunk +0 lines, -47 lines 0 comments Download
D media/cdm/android_cdm_factory.h View 1 1 chunk +0 lines, -37 lines 0 comments Download
D media/cdm/android_cdm_factory.cc View 1 1 chunk +0 lines, -54 lines 0 comments Download
M media/media.gyp View 1 2 chunks +2 lines, -8 lines 0 comments Download
M media/mojo/services/android_mojo_media_client.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 27 (13 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1408793009/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1408793009/40001
5 years, 1 month ago (2015-11-05 06:42:24 UTC) #3
xhwang
In PS1 I copied browser_cdm_factory_android.cc to android_cdm_factory.cc for easier diff. PS2 has the real change. ...
5 years, 1 month ago (2015-11-05 07:06:02 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-05 07:38:19 UTC) #8
jrummell
s/mreged/merged/ in the description. Other than that, lgtm.
5 years, 1 month ago (2015-11-05 21:27:41 UTC) #11
halliwell
https://chromiumcodereview.appspot.com/1408793009/diff/40001/chromecast/browser/cast_browser_main_parts.cc File chromecast/browser/cast_browser_main_parts.cc (left): https://chromiumcodereview.appspot.com/1408793009/diff/40001/chromecast/browser/cast_browser_main_parts.cc#oldcode319 chromecast/browser/cast_browser_main_parts.cc:319: } Our existing behaviour here is to only provide ...
5 years, 1 month ago (2015-11-05 22:20:41 UTC) #12
xhwang
comments addressed
5 years, 1 month ago (2015-11-05 22:54:02 UTC) #13
xhwang
halliwell: comments addressed. PTAL again. nasko: Please OWNERS review content/public/browser/DEPS content/public/browser/content_browser_client.cc content/public/browser/content_browser_client.h I only added ...
5 years, 1 month ago (2015-11-05 23:06:12 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1408793009/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1408793009/60001
5 years, 1 month ago (2015-11-05 23:08:20 UTC) #17
halliwell
On 2015/11/05 23:08:20, commit-bot: I haz the power wrote: > Dry run: CQ is trying ...
5 years, 1 month ago (2015-11-05 23:16:31 UTC) #18
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-06 01:13:41 UTC) #20
nasko
content/ LGTM
5 years, 1 month ago (2015-11-06 18:24:29 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1408793009/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1408793009/80001
5 years, 1 month ago (2015-11-06 18:59:57 UTC) #25
commit-bot: I haz the power
Committed patchset #4 (id:80001)
5 years, 1 month ago (2015-11-06 21:07:05 UTC) #26
commit-bot: I haz the power
5 years, 1 month ago (2015-11-06 21:08:38 UTC) #27
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/fac3c5e704ff0f2ab04982d372fc70e419a41da0
Cr-Commit-Position: refs/heads/master@{#358390}

Powered by Google App Engine
This is Rietveld 408576698