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

Issue 294043015: Move creation of MediaStream renders from MediaStreamImpl to MediaStreamRenderFactory (Closed)

Created:
6 years, 7 months ago by perkj_chrome
Modified:
6 years, 7 months ago
CC:
chromium-reviews, creis+watch_chromium.org, fischman+watch_chromium.org, nasko+codewatch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org
Visibility:
Public.

Description

Remove the use of MediaStreamClient and move creation of MediaStream specific renderers to MediaStreamRendererFactory. This cleans up RenderFrameImpl as well as moving renderer code out of MediaStreamImpl. MediaStreamImpl should in the end only implement methods necessary for blink::WebUserMediaClient and be renamed to UserMediaClientImpl. BUG=323223 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273073

Patch Set 1 #

Patch Set 2 : Removed unused files. Renamed media_stream_renderer_factory_impl #

Patch Set 3 : More cleaning. #

Patch Set 4 : #

Patch Set 5 : Fix Win build. #

Total comments: 2

Patch Set 6 : Fixed layouttests. #

Patch Set 7 : Self review. #

Total comments: 12

Patch Set 8 : Addressed commments. Fixed build when enable_webrtc = 0 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+196 lines, -1235 lines) Patch
M content/content_renderer.gypi View 1 2 chunks +2 lines, -1 line 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M content/public/test/layouttest_support.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
D content/renderer/media/media_stream_client.h View 1 chunk +0 lines, -39 lines 0 comments Download
M content/renderer/media/media_stream_impl.h View 1 2 3 4 5 6 chunks +6 lines, -41 lines 0 comments Download
M content/renderer/media/media_stream_impl.cc View 4 chunks +0 lines, -168 lines 0 comments Download
A + content/renderer/media/media_stream_renderer_factory.h View 1 2 3 4 5 6 7 1 chunk +20 lines, -17 lines 0 comments Download
A + content/renderer/media/media_stream_renderer_factory.cc View 1 2 3 4 5 6 chunks +86 lines, -775 lines 0 comments Download
M content/renderer/media/webmediaplayer_ms.h View 1 2 3 4 5 6 7 4 chunks +5 lines, -5 lines 0 comments Download
M content/renderer/media/webmediaplayer_ms.cc View 1 2 3 4 5 7 4 chunks +11 lines, -10 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 5 chunks +9 lines, -11 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 9 chunks +28 lines, -27 lines 0 comments Download
M content/shell/renderer/test_runner/web_frame_test_proxy.h View 1 2 3 4 5 6 7 2 chunks +7 lines, -0 lines 0 comments Download
M content/test/layouttest_support.cc View 1 3 chunks +0 lines, -10 lines 0 comments Download
M content/test/test_media_stream_client.h View 1 1 chunk +0 lines, -35 lines 0 comments Download
D content/test/test_media_stream_client.cc View 1 1 chunk +0 lines, -68 lines 0 comments Download
A + content/test/test_media_stream_renderer_factory.h View 1 2 3 4 5 1 chunk +12 lines, -12 lines 0 comments Download
A + content/test/test_media_stream_renderer_factory.cc View 1 2 3 4 5 3 chunks +8 lines, -11 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
perkj_chrome
xians- can you review the /media code and take a look and render_frame_impl.cc? jochen - ...
6 years, 7 months ago (2014-05-26 09:54:12 UTC) #1
jochen (gone - plz use gerrit)
On 2014/05/26 09:54:12, perkj wrote: > xians- can you review the /media code and take ...
6 years, 7 months ago (2014-05-26 14:44:59 UTC) #2
jochen (gone - plz use gerrit)
forgot to publish my drafts https://codereview.chromium.org/294043015/diff/80001/content/renderer/media/media_stream_impl.h File content/renderer/media/media_stream_impl.h (right): https://codereview.chromium.org/294043015/diff/80001/content/renderer/media/media_stream_impl.h#newcode56 content/renderer/media/media_stream_impl.h:56: const blink::WebUserMediaRequest& user_media_request) OVERRIDE; ...
6 years, 7 months ago (2014-05-27 07:26:33 UTC) #3
perkj_chrome
ok- So I fixed the layouttests. I hope this way is acceptable. Can both of ...
6 years, 7 months ago (2014-05-27 11:04:21 UTC) #4
no longer working on chromium
most of them are nits, but please address them. lgtm https://codereview.chromium.org/294043015/diff/120001/content/renderer/media/media_stream_impl.h File content/renderer/media/media_stream_impl.h (right): https://codereview.chromium.org/294043015/diff/120001/content/renderer/media/media_stream_impl.h#newcode142 ...
6 years, 7 months ago (2014-05-27 12:30:35 UTC) #5
jochen (gone - plz use gerrit)
lgtm
6 years, 7 months ago (2014-05-27 12:59:43 UTC) #6
perkj_chrome
xians- want to take another look? https://codereview.chromium.org/294043015/diff/120001/content/renderer/media/media_stream_impl.h File content/renderer/media/media_stream_impl.h (right): https://codereview.chromium.org/294043015/diff/120001/content/renderer/media/media_stream_impl.h#newcode142 content/renderer/media/media_stream_impl.h:142: bool AreAllSourcesRemoved() const ...
6 years, 7 months ago (2014-05-27 13:27:03 UTC) #7
no longer working on chromium
On 2014/05/27 13:27:03, perkj wrote: > xians- want to take another look? > > https://codereview.chromium.org/294043015/diff/120001/content/renderer/media/media_stream_impl.h ...
6 years, 7 months ago (2014-05-27 15:25:58 UTC) #8
perkj_chrome
The CQ bit was checked by perkj@chromium.org
6 years, 7 months ago (2014-05-27 17:23:23 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/perkj@chromium.org/294043015/140001
6 years, 7 months ago (2014-05-27 17:23:59 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium ...
6 years, 7 months ago (2014-05-27 20:11:40 UTC) #11
commit-bot: I haz the power
6 years, 7 months ago (2014-05-27 23:47:11 UTC) #12
Message was sent while issue was closed.
Change committed as 273073

Powered by Google App Engine
This is Rietveld 408576698