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

Issue 212803004: Separate DemuxerHost from DataSourceHost. (Closed)

Created:
6 years, 9 months ago by sandersd (OOO until July 31)
Modified:
6 years, 8 months ago
CC:
chromium-reviews, fischman+watch_chromium.org, jam, mcasas+watch_chromium.org, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Separate DemuxerHost from DataSourceHost. This is the first part of work to remove byte range computations out of media::Pipeline, and instead have the DataSource report those directly to Pipeline's parent, which will avoid crossing thread boundaries unnecessarily. This first CL just cleans up the interfaces required to do that, but already eliminates some of the stranger parts of the set-up code. BUG=122071 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=261494

Patch Set 1 #

Total comments: 5

Patch Set 2 : Remove DataSource::set_host(). #

Patch Set 3 : Update other implementations of DataSourceHost and DemuxerHost. #

Total comments: 9

Patch Set 4 : Address nits. #

Total comments: 4

Patch Set 5 : More nits. #

Patch Set 6 : Rebase #

Patch Set 7 : Fix pipeline integration test. #

Patch Set 8 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -176 lines) Patch
M chrome/utility/media_galleries/ipc_data_source.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/utility/media_galleries/ipc_data_source.cc View 1 1 chunk +0 lines, -8 lines 0 comments Download
M content/renderer/media/android/media_source_delegate.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M content/renderer/media/android/media_source_delegate.cc View 1 2 3 1 chunk +0 lines, -8 lines 0 comments Download
M content/renderer/media/buffered_data_source.h View 1 2 3 4 4 chunks +8 lines, -12 lines 0 comments Download
M content/renderer/media/buffered_data_source.cc View 1 2 3 4 6 chunks +14 lines, -43 lines 0 comments Download
M content/renderer/media/buffered_data_source_unittest.cc View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M content/renderer/media/webmediaplayer_impl.cc View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M media/base/data_source.h View 1 2 3 4 chunks +2 lines, -11 lines 0 comments Download
M media/base/data_source.cc View 1 1 chunk +1 line, -9 lines 0 comments Download
M media/base/demuxer.h View 1 1 chunk +5 lines, -1 line 0 comments Download
M media/base/demuxer_perftest.cc View 1 2 1 chunk +1 line, -5 lines 0 comments Download
M media/base/mock_data_source_host.h View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M media/base/mock_demuxer_host.h View 1 2 1 chunk +1 line, -6 lines 0 comments Download
M media/base/pipeline.h View 1 chunk +1 line, -1 line 0 comments Download
M media/base/pipeline.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M media/base/pipeline_unittest.cc View 1 2 3 2 chunks +7 lines, -2 lines 0 comments Download
M media/filters/ffmpeg_demuxer.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M media/filters/ffmpeg_demuxer_unittest.cc View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M media/filters/file_data_source.h View 1 2 chunks +0 lines, -4 lines 0 comments Download
M media/filters/file_data_source.cc View 1 2 chunks +2 lines, -22 lines 0 comments Download
M media/filters/file_data_source_unittest.cc View 1 2 1 chunk +0 lines, -16 lines 0 comments Download
M media/filters/pipeline_integration_test.cc View 1 2 3 4 5 6 1 chunk +0 lines, -4 lines 0 comments Download
M media/tools/player_x11/data_source_logger.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M media/tools/player_x11/data_source_logger.cc View 1 2 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
sandersd (OOO until July 31)
Changes (read: hacks) to separate the two interfaces. It's now in a state where all ...
6 years, 9 months ago (2014-03-26 21:10:57 UTC) #1
scherkus (not reviewing)
nifty! the next step would be to migrate the Pipeline implementation code of DSH into ...
6 years, 9 months ago (2014-03-26 21:50:11 UTC) #2
sandersd (OOO until July 31)
> one other thought that popped into my mind is whether this code could get ...
6 years, 9 months ago (2014-03-26 22:10:54 UTC) #3
sandersd (OOO until July 31)
https://codereview.chromium.org/212803004/diff/1/media/base/demuxer.h File media/base/demuxer.h (left): https://codereview.chromium.org/212803004/diff/1/media/base/demuxer.h#oldcode35 media/base/demuxer.h:35: virtual void RemoveTextStream(DemuxerStream* text_stream) = 0; On 2014/03/26 21:50:12, ...
6 years, 9 months ago (2014-03-26 22:11:12 UTC) #4
scherkus (not reviewing)
On 2014/03/26 22:10:54, Dan Sanders wrote: > > one other thought that popped into my ...
6 years, 9 months ago (2014-03-26 22:22:37 UTC) #5
sandersd (OOO until July 31)
> Anyway, the lower half of Pipeline::GetBufferedTimeRanges() where it loops over > buffered_byte_ranges_ is only ...
6 years, 9 months ago (2014-03-26 22:51:22 UTC) #6
scherkus (not reviewing)
On 2014/03/26 22:51:22, Dan Sanders wrote: > > Anyway, the lower half of Pipeline::GetBufferedTimeRanges() where ...
6 years, 9 months ago (2014-03-26 22:53:44 UTC) #7
sandersd (OOO until July 31)
> SGTM. Let me know if things start looking hairy. It didn't end up too ...
6 years, 9 months ago (2014-03-27 23:18:35 UTC) #8
scherkus (not reviewing)
holy crap I love this CL few tiny nitty things https://codereview.chromium.org/212803004/diff/40001/content/renderer/media/android/media_source_delegate.cc File content/renderer/media/android/media_source_delegate.cc (left): https://codereview.chromium.org/212803004/diff/40001/content/renderer/media/android/media_source_delegate.cc#oldcode303 ...
6 years, 8 months ago (2014-03-28 20:54:09 UTC) #9
sandersd (OOO until July 31)
https://codereview.chromium.org/212803004/diff/40001/content/renderer/media/buffered_data_source.h File content/renderer/media/buffered_data_source.h (right): https://codereview.chromium.org/212803004/diff/40001/content/renderer/media/buffered_data_source.h#newcode40 content/renderer/media/buffered_data_source.h:40: // will be called whenever the downloading/paused state of ...
6 years, 8 months ago (2014-03-28 21:14:28 UTC) #10
scherkus (not reviewing)
two nits but this is lgtm! can you also expand the CL description to answer ...
6 years, 8 months ago (2014-03-28 21:19:56 UTC) #11
sandersd (OOO until July 31)
https://codereview.chromium.org/212803004/diff/60001/content/renderer/media/buffered_data_source.cc File content/renderer/media/buffered_data_source.cc (right): https://codereview.chromium.org/212803004/diff/60001/content/renderer/media/buffered_data_source.cc#newcode103 content/renderer/media/buffered_data_source.cc:103: DCHECK(!downloading_cb_.is_null()); On 2014/03/28 21:19:56, scherkus wrote: > DCHECK(host_) here ...
6 years, 8 months ago (2014-03-29 01:15:07 UTC) #12
sandersd (OOO until July 31)
tommycli@chromium.org: Please review changes in chrome/utility/media_galleries/.
6 years, 8 months ago (2014-03-29 01:17:41 UTC) #13
tommycli
lgtm
6 years, 8 months ago (2014-04-01 19:59:11 UTC) #14
sandersd (OOO until July 31)
The CQ bit was checked by sandersd@chromium.org
6 years, 8 months ago (2014-04-01 20:22:08 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sandersd@chromium.org/212803004/100001
6 years, 8 months ago (2014-04-01 20:23:19 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-01 21:06:44 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 8 months ago (2014-04-01 21:06:45 UTC) #18
sandersd (OOO until July 31)
The CQ bit was checked by sandersd@chromium.org
6 years, 8 months ago (2014-04-01 21:21:32 UTC) #19
sandersd (OOO until July 31)
The CQ bit was checked by sandersd@chromium.org
6 years, 8 months ago (2014-04-01 22:37:59 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sandersd@chromium.org/212803004/100001
6 years, 8 months ago (2014-04-01 22:48:41 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sandersd@chromium.org/212803004/120001
6 years, 8 months ago (2014-04-02 02:04:19 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-02 10:17:56 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 8 months ago (2014-04-02 10:17:56 UTC) #24
sandersd (OOO until July 31)
The CQ bit was checked by sandersd@chromium.org
6 years, 8 months ago (2014-04-02 18:11:14 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sandersd@chromium.org/212803004/120001
6 years, 8 months ago (2014-04-02 18:12:56 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-03 00:17:47 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 8 months ago (2014-04-03 00:17:49 UTC) #28
sandersd (OOO until July 31)
The CQ bit was checked by sandersd@chromium.org
6 years, 8 months ago (2014-04-03 00:31:25 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sandersd@chromium.org/212803004/140001
6 years, 8 months ago (2014-04-03 00:32:02 UTC) #30
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-03 02:43:59 UTC) #31
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) telemetry_perf_unittests, telemetry_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=293014
6 years, 8 months ago (2014-04-03 02:44:00 UTC) #32
sandersd (OOO until July 31)
The CQ bit was checked by sandersd@chromium.org
6 years, 8 months ago (2014-04-03 17:40:06 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sandersd@chromium.org/212803004/140001
6 years, 8 months ago (2014-04-03 17:40:19 UTC) #34
commit-bot: I haz the power
6 years, 8 months ago (2014-04-03 18:54:43 UTC) #35
Message was sent while issue was closed.
Change committed as 261494

Powered by Google App Engine
This is Rietveld 408576698