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

Issue 2905613003: Extract media code from RenderFrameImpl (Closed)

Created:
3 years, 6 months ago by chcunningham
Modified:
3 years, 6 months ago
CC:
chfremer+watch_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, posciak+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Extract media code from RenderFrameImpl RenderFrameImpl has grown to contain nearly 500 lines of media plumbing. This CL extracts much of this into MediaFactory. This is done in anticipation of adding a MediaCapabilities API to the RenderFrame. BUG=695264, 588408 Review-Url: https://codereview.chromium.org/2905613003 Cr-Commit-Position: refs/heads/master@{#475659} Committed: https://chromium.googlesource.com/chromium/src/+/86f025e31d8d3676fea772a36eb9ecece61877ff

Patch Set 1 #

Total comments: 6

Patch Set 2 : Rebase and small fixes #

Total comments: 2

Patch Set 3 : Feedback #

Patch Set 4 : Remove #error debugging #

Patch Set 5 : Dont cache remote interfaces ptr #

Patch Set 6 : MediaFactory, cleaner responsibilities. Mojo fix #

Total comments: 18

Patch Set 7 : Rebase #

Patch Set 8 : Feedback #

Total comments: 6

Patch Set 9 : Feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+732 lines, -521 lines) Patch
M content/renderer/BUILD.gn View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
A content/renderer/media/media_factory.h View 1 2 3 4 5 6 7 8 1 chunk +203 lines, -0 lines 0 comments Download
A content/renderer/media/media_factory.cc View 1 2 3 4 5 6 7 8 1 chunk +502 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 6 12 chunks +9 lines, -96 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 18 chunks +16 lines, -425 lines 0 comments Download

Messages

Total messages: 70 (48 generated)
chcunningham
Hey Thomas, PTAL. This mostly copy paste from RenderFrameImpl -> RenderMediaHelper. There are a few ...
3 years, 6 months ago (2017-05-24 23:06:55 UTC) #6
DaleCurtis
+xhwang since he's most familiar with a lot of this render frame code.
3 years, 6 months ago (2017-05-24 23:17:05 UTC) #8
xhwang
Thanks for doing this!!! Actually there's a dedicated bug for this: https://bugs.chromium.org/p/chromium/issues/detail?id=588408 The code looks ...
3 years, 6 months ago (2017-05-24 23:41:28 UTC) #9
tguilbert
LGTM https://codereview.chromium.org/2905613003/diff/20001/content/renderer/media/render_media_helper.h File content/renderer/media/render_media_helper.h (right): https://codereview.chromium.org/2905613003/diff/20001/content/renderer/media/render_media_helper.h#newcode152 content/renderer/media/render_media_helper.h:152: // communicating with the real media player and ...
3 years, 6 months ago (2017-05-25 00:35:39 UTC) #13
chcunningham
Thanks guys. https://codereview.chromium.org/2905613003/diff/1/content/renderer/media/render_media_helper.h File content/renderer/media/render_media_helper.h (right): https://codereview.chromium.org/2905613003/diff/1/content/renderer/media/render_media_helper.h#newcode71 content/renderer/media/render_media_helper.h:71: class RenderMediaHelper { On 2017/05/24 23:41:28, xhwang ...
3 years, 6 months ago (2017-05-25 01:18:50 UTC) #14
chcunningham
+creis for content
3 years, 6 months ago (2017-05-25 01:19:15 UTC) #16
chcunningham
-creis (Didn't see the overloaded) +jochen
3 years, 6 months ago (2017-05-25 01:20:18 UTC) #18
xhwang
more bikeshedding: since this "helper" actually has a lot of Create*() and Get*() methods, does ...
3 years, 6 months ago (2017-05-25 22:08:57 UTC) #29
chcunningham
On 2017/05/25 22:08:57, xhwang wrote: > more bikeshedding: since this "helper" actually has a lot ...
3 years, 6 months ago (2017-05-25 22:46:44 UTC) #30
chcunningham
On 2017/05/25 22:46:44, chcunningham wrote: > On 2017/05/25 22:08:57, xhwang wrote: > > more bikeshedding: ...
3 years, 6 months ago (2017-05-25 22:52:50 UTC) #31
xhwang
On 2017/05/25 22:52:50, chcunningham wrote: > On 2017/05/25 22:46:44, chcunningham wrote: > > On 2017/05/25 ...
3 years, 6 months ago (2017-05-25 23:58:08 UTC) #34
jochen (gone - plz use gerrit)
stuff outside of media/ lgtm
3 years, 6 months ago (2017-05-26 11:39:36 UTC) #39
DaleCurtis
While you're here, did you see any functions which might benefit from a small unittest? ...
3 years, 6 months ago (2017-05-26 16:47:23 UTC) #40
xhwang
On 2017/05/26 16:47:23, DaleCurtis wrote: > While you're here, did you see any functions which ...
3 years, 6 months ago (2017-05-26 16:59:44 UTC) #41
chcunningham
xhwang and I chatted offline. Latest PS removes CheckAudioSink... and GetMediaPermissions from the helper. This ...
3 years, 6 months ago (2017-05-26 22:15:10 UTC) #46
xhwang
Thanks! still lgtm with nits https://codereview.chromium.org/2905613003/diff/100001/content/renderer/media/media_factory.h File content/renderer/media/media_factory.h (right): https://codereview.chromium.org/2905613003/diff/100001/content/renderer/media/media_factory.h#newcode25 content/renderer/media/media_factory.h:25: using media::RequestRoutingTokenCallback; "aliases declared ...
3 years, 6 months ago (2017-05-26 22:45:37 UTC) #49
chcunningham
Thanks! https://codereview.chromium.org/2905613003/diff/100001/content/renderer/media/media_factory.h File content/renderer/media/media_factory.h (right): https://codereview.chromium.org/2905613003/diff/100001/content/renderer/media/media_factory.h#newcode25 content/renderer/media/media_factory.h:25: using media::RequestRoutingTokenCallback; On 2017/05/26 22:45:36, xhwang wrote: > ...
3 years, 6 months ago (2017-05-27 00:11:49 UTC) #52
xhwang
https://codereview.chromium.org/2905613003/diff/140001/content/renderer/media/media_factory.cc File content/renderer/media/media_factory.cc (right): https://codereview.chromium.org/2905613003/diff/140001/content/renderer/media/media_factory.cc#newcode88 content/renderer/media/media_factory.cc:88: media_player_delegate_(nullptr) { You don't need these any more. https://codereview.chromium.org/2905613003/diff/140001/content/renderer/media/media_factory.h ...
3 years, 6 months ago (2017-05-27 00:25:52 UTC) #57
chcunningham
https://codereview.chromium.org/2905613003/diff/140001/content/renderer/media/media_factory.cc File content/renderer/media/media_factory.cc (right): https://codereview.chromium.org/2905613003/diff/140001/content/renderer/media/media_factory.cc#newcode88 content/renderer/media/media_factory.cc:88: media_player_delegate_(nullptr) { On 2017/05/27 00:25:52, xhwang wrote: > You ...
3 years, 6 months ago (2017-05-27 01:38:47 UTC) #58
xhwang
lgtm
3 years, 6 months ago (2017-05-27 03:52:06 UTC) #64
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/2905613003/160001
3 years, 6 months ago (2017-05-30 18:41:55 UTC) #67
commit-bot: I haz the power
3 years, 6 months ago (2017-05-30 20:43:39 UTC) #70
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/86f025e31d8d3676fea772a36eb9...

Powered by Google App Engine
This is Rietveld 408576698