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

Issue 9860027: Remove DemuxerFactory and URL parameter from Pipeline. (Closed)

Created:
8 years, 9 months ago by scherkus (not reviewing)
Modified:
8 years, 8 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Remove DemuxerFactory and URL parameter from Pipeline. Since Demuxers still require asynchronous initialization DemuxerFactory::Build() has been replaced with Demuxer::Initialize(). Since FFmpegDemuxer is the only Demuxer requiring a DataSource it is now passed in via FFmpegDemuxer's constructor. Now that Demuxer::set_host() is guaranteed to be called prior to initialization we're able to tighten up some code inside ChunkDemuxer. We should still nuke set_host() (see bug 111585) but I'll leave that for a future CL. BUG=110804, 110809 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=130165

Patch Set 1 #

Patch Set 2 : tests are a-passin #

Patch Set 3 : added some todos #

Total comments: 12

Patch Set 4 : fixes #

Patch Set 5 : fix prerender #

Total comments: 5

Patch Set 6 : rebase + fix #

Patch Set 7 : again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+346 lines, -797 lines) Patch
M chrome/test/data/prerender/prerender_html5_common.js View 1 2 3 4 2 chunks +4 lines, -5 lines 0 comments Download
M media/base/data_source.h View 1 2 3 4 5 2 chunks +0 lines, -4 lines 0 comments Download
M media/base/demuxer.h View 1 2 3 4 5 4 chunks +8 lines, -4 lines 0 comments Download
D media/base/demuxer_factory.h View 1 chunk +0 lines, -32 lines 0 comments Download
D media/base/demuxer_factory.cc View 1 chunk +0 lines, -11 lines 0 comments Download
M media/base/filter_collection.h View 1 2 3 3 chunks +5 lines, -5 lines 0 comments Download
M media/base/filter_collection.cc View 1 2 3 1 chunk +4 lines, -5 lines 0 comments Download
M media/base/mock_filters.h View 1 2 3 4 5 6 chunks +9 lines, -29 lines 0 comments Download
M media/base/mock_filters.cc View 1 2 3 4 5 3 chunks +8 lines, -51 lines 0 comments Download
M media/base/pipeline.h View 1 2 3 4 5 9 chunks +4 lines, -24 lines 0 comments Download
M media/base/pipeline.cc View 1 2 3 4 5 9 chunks +11 lines, -37 lines 0 comments Download
M media/base/pipeline_unittest.cc View 1 2 3 4 5 10 chunks +36 lines, -47 lines 0 comments Download
D media/base/preload.h View 1 2 3 4 5 1 chunk +0 lines, -25 lines 0 comments Download
M media/filters/chunk_demuxer.h View 1 2 3 4 5 2 chunks +1 line, -8 lines 0 comments Download
M media/filters/chunk_demuxer.cc View 1 2 3 4 5 7 chunks +11 lines, -31 lines 0 comments Download
D media/filters/chunk_demuxer_factory.h View 1 chunk +0 lines, -36 lines 0 comments Download
D media/filters/chunk_demuxer_factory.cc View 1 chunk +0 lines, -38 lines 0 comments Download
M media/filters/chunk_demuxer_unittest.cc View 1 9 chunks +18 lines, -23 lines 0 comments Download
M media/filters/dummy_demuxer.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M media/filters/dummy_demuxer.cc View 1 2 3 4 5 2 chunks +6 lines, -4 lines 0 comments Download
D media/filters/dummy_demuxer_factory.h View 1 chunk +0 lines, -33 lines 0 comments Download
D media/filters/dummy_demuxer_factory.cc View 1 chunk +0 lines, -29 lines 0 comments Download
M media/filters/ffmpeg_demuxer.h View 1 2 3 4 5 3 chunks +8 lines, -12 lines 0 comments Download
M media/filters/ffmpeg_demuxer.cc View 1 2 3 4 5 6 chunks +59 lines, -70 lines 0 comments Download
D media/filters/ffmpeg_demuxer_factory.h View 1 chunk +0 lines, -36 lines 0 comments Download
D media/filters/ffmpeg_demuxer_factory.cc View 1 chunk +0 lines, -39 lines 0 comments Download
M media/filters/ffmpeg_demuxer_unittest.cc View 19 chunks +74 lines, -62 lines 0 comments Download
M media/filters/file_data_source.h View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M media/filters/file_data_source.cc View 1 2 3 4 5 1 chunk +1 line, -5 lines 0 comments Download
M media/filters/pipeline_integration_test.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M media/filters/pipeline_integration_test_base.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M media/filters/pipeline_integration_test_base.cc View 1 2 3 4 5 3 chunks +7 lines, -9 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 4 chunks +0 lines, -13 lines 0 comments Download
M media/tools/player_wtl/movie.cc View 1 2 3 4 5 3 chunks +4 lines, -5 lines 0 comments Download
M media/tools/player_x11/data_source_logger.h View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M media/tools/player_x11/data_source_logger.cc View 1 2 3 4 5 1 chunk +0 lines, -5 lines 0 comments Download
M media/tools/player_x11/player_x11.cc View 1 2 3 4 5 3 chunks +4 lines, -4 lines 0 comments Download
M media/tools/seek_tester/seek_tester.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M webkit/media/buffered_data_source.h View 1 2 3 4 5 5 chunks +5 lines, -5 lines 0 comments Download
M webkit/media/buffered_data_source.cc View 1 2 3 4 5 5 chunks +7 lines, -12 lines 0 comments Download
M webkit/media/buffered_data_source_unittest.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M webkit/media/filter_helpers.h View 1 2 3 4 5 1 chunk +10 lines, -3 lines 0 comments Download
M webkit/media/filter_helpers.cc View 1 2 3 4 5 4 chunks +12 lines, -13 lines 0 comments Download
A + webkit/media/preload.h View 1 2 3 4 5 2 chunks +5 lines, -5 lines 0 comments Download
M webkit/media/webkit_media.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M webkit/media/webmediaplayer_impl.h View 1 1 chunk +1 line, -1 line 0 comments Download
M webkit/media/webmediaplayer_impl.cc View 1 2 3 4 5 5 chunks +15 lines, -7 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
scherkus (not reviewing)
woooooooooooo https://chromiumcodereview.appspot.com/9860027/diff/4001/media/filters/chunk_demuxer.cc File media/filters/chunk_demuxer.cc (right): https://chromiumcodereview.appspot.com/9860027/diff/4001/media/filters/chunk_demuxer.cc#newcode366 media/filters/chunk_demuxer.cc:366: // Initialize() is called? NOTE: I did precisely ...
8 years, 9 months ago (2012-03-27 16:51:11 UTC) #1
scherkus (not reviewing)
as a note to myself this CL causes PrerenderHTML5VideoNetwork to fail -- investigating
8 years, 9 months ago (2012-03-27 20:07:52 UTC) #2
acolwell GONE FROM CHROMIUM
Here are my initial comments https://chromiumcodereview.appspot.com/9860027/diff/4001/media/base/demuxer.h File media/base/demuxer.h (right): https://chromiumcodereview.appspot.com/9860027/diff/4001/media/base/demuxer.h#newcode43 media/base/demuxer.h:43: virtual void Initialize(const PipelineStatusCB& ...
8 years, 9 months ago (2012-03-27 20:11:35 UTC) #3
scherkus (not reviewing)
https://chromiumcodereview.appspot.com/9860027/diff/4001/media/base/demuxer.h File media/base/demuxer.h (right): https://chromiumcodereview.appspot.com/9860027/diff/4001/media/base/demuxer.h#newcode43 media/base/demuxer.h:43: virtual void Initialize(const PipelineStatusCB& status_cb) = 0; On 2012/03/27 ...
8 years, 9 months ago (2012-03-27 20:44:09 UTC) #4
scherkus (not reviewing)
+shishir for prerender tests http://codereview.chromium.org/9860027/diff/8001/chrome/test/data/prerender/prerender_html5_common.js File chrome/test/data/prerender/prerender_html5_common.js (right): http://codereview.chromium.org/9860027/diff/8001/chrome/test/data/prerender/prerender_html5_common.js#newcode53 chrome/test/data/prerender/prerender_html5_common.js:53: assert(false); shishir: can you take ...
8 years, 9 months ago (2012-03-28 00:24:34 UTC) #5
Shishir
http://codereview.chromium.org/9860027/diff/8001/chrome/test/data/prerender/prerender_html5_common.js File chrome/test/data/prerender/prerender_html5_common.js (right): http://codereview.chromium.org/9860027/diff/8001/chrome/test/data/prerender/prerender_html5_common.js#newcode53 chrome/test/data/prerender/prerender_html5_common.js:53: assert(false); On 2012/03/28 00:24:34, scherkus wrote: > shishir: can ...
8 years, 9 months ago (2012-03-28 18:41:33 UTC) #6
scherkus (not reviewing)
On 2012/03/28 18:41:33, Shishir wrote: > http://codereview.chromium.org/9860027/diff/8001/chrome/test/data/prerender/prerender_html5_common.js > File chrome/test/data/prerender/prerender_html5_common.js (right): > > http://codereview.chromium.org/9860027/diff/8001/chrome/test/data/prerender/prerender_html5_common.js#newcode53 > ...
8 years, 8 months ago (2012-03-29 22:53:00 UTC) #7
scherkus (not reviewing)
pinging acolwell in case he has more comments!
8 years, 8 months ago (2012-03-30 20:11:17 UTC) #8
acolwell GONE FROM CHROMIUM
LGTM http://codereview.chromium.org/9860027/diff/8001/media/base/pipeline.h File media/base/pipeline.h (right): http://codereview.chromium.org/9860027/diff/8001/media/base/pipeline.h#newcode407 media/base/pipeline.h:407: // Filter object from FilterCollection and initialize it ...
8 years, 8 months ago (2012-03-30 21:16:39 UTC) #9
scherkus (not reviewing)
ping shishir http://codereview.chromium.org/9860027/diff/8001/chrome/test/data/prerender/prerender_html5_common.js File chrome/test/data/prerender/prerender_html5_common.js (right): http://codereview.chromium.org/9860027/diff/8001/chrome/test/data/prerender/prerender_html5_common.js#newcode53 chrome/test/data/prerender/prerender_html5_common.js:53: assert(false); On 2012/03/28 18:41:33, Shishir wrote: > ...
8 years, 8 months ago (2012-03-30 21:40:45 UTC) #10
Shishir
LGTM for the prerender stuff.
8 years, 8 months ago (2012-04-02 17:43:46 UTC) #11
Shishir
8 years, 8 months ago (2012-04-02 17:46:08 UTC) #12
As discussed with Andrew, the network events were not being tested since DPP was
not blocking till the events actually fired. So for now the stalled network
event is being disabled and I will look to see how we can wait for them.

LGTM.

Powered by Google App Engine
This is Rietveld 408576698