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

Issue 2521133002: media: Add MediaInterfaceProxy (Closed)

Created:
4 years, 1 month ago by xhwang
Modified:
4 years ago
Reviewers:
nasko, alokp
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org, feature-media-reviews_chromium.org, sandersd (OOO until July 31), tguilbert
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

media: Add MediaInterfaceProxy The current structure make it impossible to support hosting different media services in different processes. For example, on desktop we may want to host a video decoder service in the GPU process, but host a CDM service in a utility process. For another example, on Android, we want to host the audio decoder and CDM service in the GPU process, but host a Renderer service in the browser process. This CL adds a MediaInterfaceProxy which will serve as a proxy (and central place) to dispatch media interface creation calls and decide where to forward the interface request to support the above use cases. In this CL, MediaInterfaceProxy will always forward calls to the existing media service we have. In future CLs, we'll add more logic to support the more complicated use cases. This also moves a lot of media logic into a helper class, which helps make RenderFrameHostImpl cleaner. BUG=664364 TEST=Maually tested. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/aa0bf6dcfa0c1e3e788d381cebee7e012a3a5a6e Cr-Commit-Position: refs/heads/master@{#436119}

Patch Set 1 #

Patch Set 2 : rebase only #

Patch Set 3 : rebase only #

Total comments: 6

Patch Set 4 : rebase only #

Patch Set 5 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+234 lines, -40 lines) Patch
M content/browser/BUILD.gn View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 4 chunks +12 lines, -4 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 chunks +16 lines, -36 lines 0 comments Download
A content/browser/media/media_interface_proxy.h View 1 2 3 4 1 chunk +69 lines, -0 lines 0 comments Download
A content/browser/media/media_interface_proxy.cc View 1 1 chunk +135 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (24 generated)
xhwang
rebase only
4 years, 1 month ago (2016-11-22 06:47:03 UTC) #6
xhwang
rebase only
4 years ago (2016-11-30 08:40:31 UTC) #13
xhwang
alokp: PTAL sandersd / tguilbert: FYI
4 years ago (2016-11-30 17:42:16 UTC) #19
alokp
On 2016/11/30 17:42:16, xhwang wrote: > alokp: PTAL > sandersd / tguilbert: FYI This patch ...
4 years ago (2016-12-01 01:23:35 UTC) #20
xhwang
On 2016/12/01 01:23:35, alokp wrote: > On 2016/11/30 17:42:16, xhwang wrote: > > alokp: PTAL ...
4 years ago (2016-12-01 06:17:39 UTC) #21
xhwang
nasko: Please content OWNERS review. You can treat this CL as a refactor/clean-up CL, which ...
4 years ago (2016-12-01 06:19:38 UTC) #23
alokp
On 2016/12/01 06:17:39, xhwang wrote: > On 2016/12/01 01:23:35, alokp wrote: > > On 2016/11/30 ...
4 years ago (2016-12-01 13:20:57 UTC) #24
xhwang
On 2016/12/01 13:20:57, alokp wrote: > On 2016/12/01 06:17:39, xhwang wrote: > > On 2016/12/01 ...
4 years ago (2016-12-01 17:46:57 UTC) #25
alokp
> Typically we deal with multi-process-ness in the content/ layer. Also, I'd like > to ...
4 years ago (2016-12-01 18:26:58 UTC) #26
xhwang
On 2016/12/01 18:26:58, alokp wrote: > > Typically we deal with multi-process-ness in the content/ ...
4 years ago (2016-12-01 18:38:38 UTC) #27
xhwang
nasko: Kindly ping!
4 years ago (2016-12-02 17:33:35 UTC) #28
nasko
LGTM with nits https://codereview.chromium.org/2521133002/diff/40001/content/browser/frame_host/render_frame_host_impl.h File content/browser/frame_host/render_frame_host_impl.h (right): https://codereview.chromium.org/2521133002/diff/40001/content/browser/frame_host/render_frame_host_impl.h#newcode819 content/browser/frame_host/render_frame_host_impl.h:819: nit: Unneeded empty line. https://codereview.chromium.org/2521133002/diff/40001/content/browser/frame_host/render_frame_host_impl.h#newcode1073 content/browser/frame_host/render_frame_host_impl.h:1073: ...
4 years ago (2016-12-02 22:18:09 UTC) #29
xhwang
rebase only
4 years ago (2016-12-02 23:22:16 UTC) #30
xhwang
comments addressed
4 years ago (2016-12-02 23:42:03 UTC) #31
xhwang
https://codereview.chromium.org/2521133002/diff/40001/content/browser/frame_host/render_frame_host_impl.h File content/browser/frame_host/render_frame_host_impl.h (right): https://codereview.chromium.org/2521133002/diff/40001/content/browser/frame_host/render_frame_host_impl.h#newcode819 content/browser/frame_host/render_frame_host_impl.h:819: On 2016/12/02 22:18:09, nasko wrote: > nit: Unneeded empty ...
4 years ago (2016-12-02 23:42:21 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2521133002/80001
4 years ago (2016-12-02 23:46:47 UTC) #38
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-12-03 01:20:10 UTC) #40
commit-bot: I haz the power
4 years ago (2016-12-03 01:23:40 UTC) #42
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/aa0bf6dcfa0c1e3e788d381cebee7e012a3a5a6e
Cr-Commit-Position: refs/heads/master@{#436119}

Powered by Google App Engine
This is Rietveld 408576698