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

Issue 8936014: Removing DataSource from Filter hierarchy (Closed)

Created:
9 years ago by acolwell GONE FROM CHROMIUM
Modified:
9 years ago
CC:
chromium-reviews, hclam+watch_chromium.org, ddorwin+watch_chromium.org, fischman+watch_chromium.org, acolwell+watch_chromium.org, annacc+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr., vrk (LEFT CHROMIUM), scherkus (not reviewing), ihf+watch_chromium.org
Visibility:
Public.

Description

Removing DataSource from Filter hierarchy and refactoring FilterHost into DemuxerHost & DataSourceHost. Over the last year, several refactorings have caused DataSource to have almost nothing in common with the Filter interface. This change removes it from the Filter class hierarchy and splits up the FilterHost interface so that DataSource, Demuxer, and Filter have their own host interfaces. Splitting FilterHost improves encapsulation and makes it easier to reason about which host methods are required by different parts of the code. BUG= TEST=media_unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114819

Patch Set 1 #

Patch Set 2 : _ #

Patch Set 3 : Fix build busters #

Total comments: 32

Patch Set 4 : Address CR comments #

Patch Set 5 : Moved preload into a separate file. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+375 lines, -223 lines) Patch
M media/base/composite_filter.cc View 3 chunks +0 lines, -37 lines 0 comments Download
A media/base/data_source.h View 1 2 3 4 1 chunk +86 lines, -0 lines 0 comments Download
A media/base/data_source.cc View 1 2 3 1 chunk +30 lines, -0 lines 0 comments Download
M media/base/demuxer.h View 1 2 3 4 2 chunks +33 lines, -12 lines 0 comments Download
M media/base/demuxer.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M media/base/filter_host.h View 1 2 3 2 chunks +2 lines, -26 lines 0 comments Download
M media/base/filters.h View 2 chunks +0 lines, -43 lines 0 comments Download
M media/base/filters.cc View 1 chunk +0 lines, -3 lines 0 comments Download
A media/base/mock_data_source_host.h View 1 chunk +32 lines, -0 lines 0 comments Download
A media/base/mock_data_source_host.cc View 1 chunk +13 lines, -0 lines 0 comments Download
A media/base/mock_demuxer_host.h View 1 chunk +38 lines, -0 lines 0 comments Download
A media/base/mock_demuxer_host.cc View 1 chunk +13 lines, -0 lines 0 comments Download
M media/base/mock_filters.h View 2 chunks +3 lines, -4 lines 0 comments Download
M media/base/mock_filters.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M media/base/pipeline.h View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M media/base/pipeline_impl.h View 1 2 3 2 chunks +15 lines, -8 lines 0 comments Download
M media/base/pipeline_impl.cc View 2 chunks +4 lines, -5 lines 0 comments Download
A media/base/preload.h View 1 2 3 4 1 chunk +25 lines, -0 lines 0 comments Download
M media/filters/chunk_demuxer.h View 1 chunk +1 line, -1 line 0 comments Download
M media/filters/chunk_demuxer.cc View 3 chunks +5 lines, -6 lines 0 comments Download
M media/filters/chunk_demuxer_unittest.cc View 11 chunks +16 lines, -15 lines 0 comments Download
M media/filters/ffmpeg_demuxer.h View 1 2 3 4 3 chunks +4 lines, -4 lines 0 comments Download
M media/filters/ffmpeg_demuxer.cc View 1 2 3 4 5 chunks +7 lines, -8 lines 0 comments Download
M media/filters/ffmpeg_demuxer_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M media/filters/file_data_source.h View 1 2 3 2 chunks +3 lines, -5 lines 0 comments Download
M media/filters/file_data_source.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M media/filters/file_data_source_unittest.cc View 4 chunks +3 lines, -13 lines 0 comments Download
M media/media.gyp View 1 2 3 4 3 chunks +7 lines, -0 lines 1 comment Download
M webkit/media/buffered_data_source.h View 2 chunks +4 lines, -5 lines 0 comments Download
M webkit/media/buffered_data_source.cc View 1 2 3 3 chunks +4 lines, -6 lines 0 comments Download
M webkit/media/buffered_data_source_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M webkit/media/simple_data_source.h View 2 chunks +3 lines, -5 lines 0 comments Download
M webkit/media/simple_data_source.cc View 2 chunks +1 line, -2 lines 0 comments Download
M webkit/media/simple_data_source_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M webkit/media/web_data_source.h View 1 chunk +1 line, -1 line 0 comments Download
M webkit/media/webmediaplayer_proxy.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
acolwell GONE FROM CHROMIUM
I'm intentionally not making any changes to the callers. I just wanted to make the ...
9 years ago (2011-12-14 17:57:38 UTC) #1
Ami GONE FROM CHROMIUM
Exciting. http://codereview.chromium.org/8936014/diff/7001/media/base/data_source.cc File media/base/data_source.cc (right): http://codereview.chromium.org/8936014/diff/7001/media/base/data_source.cc#newcode16 media/base/data_source.cc:16: void DataSource::set_host(DataSourceHost* host) { host_ = host; } ...
9 years ago (2011-12-15 18:39:07 UTC) #2
acolwell GONE FROM CHROMIUM
http://codereview.chromium.org/8936014/diff/7001/media/base/data_source.cc File media/base/data_source.cc (right): http://codereview.chromium.org/8936014/diff/7001/media/base/data_source.cc#newcode16 media/base/data_source.cc:16: void DataSource::set_host(DataSourceHost* host) { host_ = host; } On ...
9 years ago (2011-12-15 20:57:59 UTC) #3
Ami GONE FROM CHROMIUM
lgtm http://codereview.chromium.org/8936014/diff/7001/media/base/data_source.cc File media/base/data_source.cc (right): http://codereview.chromium.org/8936014/diff/7001/media/base/data_source.cc#newcode18 media/base/data_source.cc:18: void DataSource::SetPlaybackRate(float playback_rate) {} On 2011/12/15 20:57:59, acolwell ...
9 years ago (2011-12-15 22:39:16 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/acolwell@chromium.org/8936014/25001
9 years ago (2011-12-16 15:16:32 UTC) #5
commit-bot: I haz the power
Change committed as 114819
9 years ago (2011-12-16 17:14:27 UTC) #6
jennb
9 years ago (2011-12-16 18:09:04 UTC) #7
http://codereview.chromium.org/8936014/diff/25001/media/media.gyp
File media/media.gyp (right):

http://codereview.chromium.org/8936014/diff/25001/media/media.gyp#newcode682
media/media.gyp:682: 'base/mock_ddata_source_host.h',
typo: ddata

Powered by Google App Engine
This is Rietveld 408576698