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

Issue 2243683002: Add OnDurationChange() to RenderClient (Closed)

Created:
4 years, 4 months ago by tguilbert
Modified:
4 years, 4 months ago
CC:
Aaron Boodman, abarth-chromium, alokp+watch_chromium.org, avayvod+watch_chromium.org, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mcasas+watch+vc_chromium.org, miu+watch_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-media_chromium.org, posciak+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@media_player_simplified
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add OnDurationChange() to RenderClient Currently, only the DemuxerHost interface allows the propragation of duration changes; the demuxer is responsible for detecting duration changes and notifying the Pipeline. In the case of the MediaPlayerRenderer, we use a MediaUrlDemuxer, which never receives duration updates. Instead, all metadata parsing happens on the browser side, in the MediaPlayerRenderer. We therefore need a way to propagate the duration changes from the MediaPlayerRenderer to the pipeline. This change adds an OnDurationChange method to both the media::RendererClient and the mojom::RendererClient interfaces. BUG=635991 Committed: https://crrev.com/2875bf04f6a471d51491cb45fc3eefba7ae5e4fc Cr-Commit-Position: refs/heads/master@{#411893}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fixed typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -4 lines) Patch
M content/browser/media/android/media_player_renderer.cc View 1 chunk +1 line, -2 lines 0 comments Download
M content/renderer/media/android/media_player_renderer_client.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/media/android/media_player_renderer_client.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M media/base/mock_filters.h View 1 chunk +1 line, -0 lines 0 comments Download
M media/base/pipeline_impl.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M media/base/renderer_client.h View 2 chunks +7 lines, -2 lines 0 comments Download
M media/mojo/clients/mojo_renderer.h View 1 chunk +1 line, -0 lines 0 comments Download
M media/mojo/clients/mojo_renderer.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M media/mojo/interfaces/renderer.mojom View 1 chunk +4 lines, -0 lines 0 comments Download
M media/mojo/services/media_mojo_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M media/mojo/services/mojo_renderer_service.h View 1 chunk +1 line, -0 lines 0 comments Download
M media/mojo/services/mojo_renderer_service.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M media/renderers/audio_renderer_impl_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M media/renderers/renderer_impl.cc View 1 1 chunk +7 lines, -0 lines 0 comments Download
M media/renderers/renderer_impl_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 25 (13 generated)
tguilbert
PTAL. Will add security reviewer after getting LGTM from the media team. FYI, I had ...
4 years, 4 months ago (2016-08-11 23:07:30 UTC) #2
DaleCurtis
lgtm
4 years, 4 months ago (2016-08-12 00:36:48 UTC) #7
watk
lgtm https://codereview.chromium.org/2243683002/diff/1/media/mojo/clients/mojo_renderer.h File media/mojo/clients/mojo_renderer.h (right): https://codereview.chromium.org/2243683002/diff/1/media/mojo/clients/mojo_renderer.h#newcode70 media/mojo/clients/mojo_renderer.h:70: void OnDurationChange(int64_t duration_usec) override; Not sure if there's ...
4 years, 4 months ago (2016-08-12 00:49:06 UTC) #8
tguilbert
+ochang, can you take a look at the media/mojo/interfaces/renderer.mojom change from a security POV? Thank ...
4 years, 4 months ago (2016-08-12 00:58:16 UTC) #10
Oliver Chang
security lgtm
4 years, 4 months ago (2016-08-12 03:20:59 UTC) #11
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/2243683002/20001
4 years, 4 months ago (2016-08-12 19:30:38 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/272935)
4 years, 4 months ago (2016-08-12 22:18:13 UTC) #16
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/2243683002/20001
4 years, 4 months ago (2016-08-12 23:10:51 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/273245)
4 years, 4 months ago (2016-08-13 03:51:17 UTC) #20
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/2243683002/20001
4 years, 4 months ago (2016-08-13 08:13:10 UTC) #22
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-13 12:12:16 UTC) #23
commit-bot: I haz the power
4 years, 4 months ago (2016-08-13 12:13:48 UTC) #25
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/2875bf04f6a471d51491cb45fc3eefba7ae5e4fc
Cr-Commit-Position: refs/heads/master@{#411893}

Powered by Google App Engine
This is Rietveld 408576698