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

Issue 318753010: Introduce the ENABLE_BROWSER_CDMS macro. (Closed)

Created:
6 years, 6 months ago by xhwang
Modified:
6 years, 6 months ago
Reviewers:
damienv1, Yaron, jam, ddorwin
CC:
chromium-reviews, feature-media-reviews_chromium.org, jam, avayvod+watch_chromium.org, darin-cc_chromium.org, gmorgan_chromium.org
Visibility:
Public.

Description

Introduce the ENABLE_BROWSER_CDMS macro. This will be defined when a platform needs to use browser side CDM to implement EME API. Currently this is only used on Android. Note that MediaWebContentsObserver is shared by Android media player managers and browser CDM managers. Since ENABLE_BROWSER_CDMS is always true on Android, we only check ENABLE_BROWSER_CDMS to decide whether MediaWebContentsObserver should be used. Also, in media_web_contents_observer.*, we only check OS_ANDROID to decide whether Android media player code should be used. This is not perfect but makes the current code simple. This will be fixed when we have a general (not Android specic) media player manager. TBR=yfriedman@chromium.org BUG=315312 TEST=Compiles on Android. Test pages still work on Android. Compiles when I choose to use browser CDM on Linux. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276200

Patch Set 1 : Copy media_web_contents_observer.* to content/browser/media/. No code change. #

Patch Set 2 : Ready for review. Please diff against PS1 for easy life. #

Total comments: 12

Patch Set 3 : rebase only #

Patch Set 4 : fix minor rebase errors #

Patch Set 5 : comments addressed #

Patch Set 6 : MEDIA_EXPORT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+198 lines, -827 lines) Patch
M build/common.gypi View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M content/browser/android/child_process_launcher_android.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/android/surface_texture_peer_browser_impl.cc View 1 1 chunk +1 line, -1 line 0 comments Download
D content/browser/media/android/browser_cdm_manager.h View 1 2 1 chunk +0 lines, -125 lines 0 comments Download
D content/browser/media/android/browser_cdm_manager.cc View 1 2 1 chunk +0 lines, -294 lines 0 comments Download
D content/browser/media/android/media_web_contents_observer.h View 1 chunk +0 lines, -75 lines 0 comments Download
D content/browser/media/android/media_web_contents_observer.cc View 1 2 1 chunk +0 lines, -198 lines 0 comments Download
A + content/browser/media/cdm/browser_cdm_manager.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
A + content/browser/media/cdm/browser_cdm_manager.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
A + content/browser/media/media_web_contents_observer.h View 1 2 3 4 5 chunks +24 lines, -14 lines 0 comments Download
A + content/browser/media/media_web_contents_observer.cc View 1 2 3 4 6 chunks +56 lines, -47 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 1 2 2 chunks +5 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 2 chunks +5 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/content_browser.gypi View 1 2 3 4 3 chunks +9 lines, -4 lines 0 comments Download
M content/content_renderer.gypi View 1 2 2 chunks +8 lines, -4 lines 0 comments Download
M content/renderer/media/cdm_session_adapter.h View 1 2 3 4 chunks +5 lines, -4 lines 0 comments Download
M content/renderer/media/cdm_session_adapter.cc View 1 2 3 4 chunks +5 lines, -5 lines 0 comments Download
M content/renderer/media/crypto/content_decryption_module_factory.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/media/crypto/content_decryption_module_factory.cc View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M content/renderer/media/crypto/proxy_decryptor.h View 1 2 4 chunks +5 lines, -5 lines 0 comments Download
M content/renderer/media/crypto/proxy_decryptor.cc View 1 2 5 chunks +6 lines, -6 lines 0 comments Download
M content/renderer/media/webcontentdecryptionmodule_impl.h View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
M content/renderer/media/webcontentdecryptionmodule_impl.cc View 1 2 3 3 chunks +5 lines, -5 lines 0 comments Download
M content/renderer/media/webmediaplayer_impl.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 4 chunks +14 lines, -8 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 5 chunks +12 lines, -5 lines 0 comments Download
M media/base/browser_cdm.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M media/media.gyp View 1 2 2 chunks +7 lines, -3 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
xhwang
PTAL! https://codereview.chromium.org/318753010/diff/20001/content/browser/media/media_web_contents_observer.h File content/browser/media/media_web_contents_observer.h (right): https://codereview.chromium.org/318753010/diff/20001/content/browser/media/media_web_contents_observer.h#newcode66 content/browser/media/media_web_contents_observer.h:66: BrowserCdmManager* GetCdmManager(RenderFrameHost* render_frame_host); I only moved things around ...
6 years, 6 months ago (2014-06-05 00:21:25 UTC) #1
xhwang
BTW: this CL is based on https://codereview.chromium.org/315733003/
6 years, 6 months ago (2014-06-05 00:22:43 UTC) #2
ddorwin
LGTM % comments https://codereview.chromium.org/318753010/diff/20001/content/browser/media/media_web_contents_observer.h File content/browser/media/media_web_contents_observer.h (right): https://codereview.chromium.org/318753010/diff/20001/content/browser/media/media_web_contents_observer.h#newcode66 content/browser/media/media_web_contents_observer.h:66: BrowserCdmManager* GetCdmManager(RenderFrameHost* render_frame_host); On 2014/06/05 00:21:25, ...
6 years, 6 months ago (2014-06-05 17:59:48 UTC) #3
xhwang
jam@: Please OWNERS review content/renderer/render_frame_impl.* and content/browser/renderer_host/* yfriedman@: Please OWNERS review content/browser/android/*
6 years, 6 months ago (2014-06-09 16:18:45 UTC) #4
jam
lgtm https://codereview.chromium.org/318753010/diff/60001/content/renderer/render_frame_impl.h File content/renderer/render_frame_impl.h (right): https://codereview.chromium.org/318753010/diff/60001/content/renderer/render_frame_impl.h#newcode72 content/renderer/render_frame_impl.h:72: #if defined(ENABLE_BROWSER_CDMS) nit: skip the ifdef around the ...
6 years, 6 months ago (2014-06-09 20:02:54 UTC) #5
xhwang
comments addressed
6 years, 6 months ago (2014-06-09 20:54:15 UTC) #6
xhwang
https://codereview.chromium.org/318753010/diff/20001/content/browser/media/media_web_contents_observer.h File content/browser/media/media_web_contents_observer.h (right): https://codereview.chromium.org/318753010/diff/20001/content/browser/media/media_web_contents_observer.h#newcode66 content/browser/media/media_web_contents_observer.h:66: BrowserCdmManager* GetCdmManager(RenderFrameHost* render_frame_host); On 2014/06/05 17:59:48, ddorwin wrote: > ...
6 years, 6 months ago (2014-06-09 20:57:20 UTC) #7
xhwang
On 2014/06/09 20:02:54, jam wrote: > lgtm > > https://codereview.chromium.org/318753010/diff/60001/content/renderer/render_frame_impl.h > File content/renderer/render_frame_impl.h (right): > ...
6 years, 6 months ago (2014-06-09 20:57:34 UTC) #8
Yaron
content/browser/android lgtm
6 years, 6 months ago (2014-06-09 22:15:01 UTC) #9
xhwang
The CQ bit was checked by xhwang@chromium.org
6 years, 6 months ago (2014-06-09 23:54:22 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/318753010/120001
6 years, 6 months ago (2014-06-09 23:55:45 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_clang_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-10 13:47:17 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-10 14:42:08 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_clang_dbg/builds/150352)
6 years, 6 months ago (2014-06-10 14:42:09 UTC) #14
xhwang
The CQ bit was checked by xhwang@chromium.org
6 years, 6 months ago (2014-06-10 15:34:35 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/318753010/120001
6 years, 6 months ago (2014-06-10 15:36:12 UTC) #16
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_clang_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-10 16:26:19 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-10 17:10:03 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_clang_dbg/builds/150436)
6 years, 6 months ago (2014-06-10 17:10:04 UTC) #19
xhwang
The CQ bit was checked by xhwang@chromium.org
6 years, 6 months ago (2014-06-10 17:11:54 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/318753010/120001
6 years, 6 months ago (2014-06-10 17:14:13 UTC) #21
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_clang_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-10 17:48:24 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-10 18:12:19 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_clang_dbg/builds/150500)
6 years, 6 months ago (2014-06-10 18:12:20 UTC) #24
xhwang
The CQ bit was checked by xhwang@chromium.org
6 years, 6 months ago (2014-06-10 18:51:27 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/318753010/120001
6 years, 6 months ago (2014-06-10 18:55:08 UTC) #26
commit-bot: I haz the power
6 years, 6 months ago (2014-06-10 23:21:58 UTC) #27
Message was sent while issue was closed.
Change committed as 276200

Powered by Google App Engine
This is Rietveld 408576698