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

Unified Diff: media/base/data_source.h

Issue 212803004: Separate DemuxerHost from DataSourceHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/media/webmediaplayer_impl.cc ('k') | media/base/data_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/data_source.h
diff --git a/media/base/data_source.h b/media/base/data_source.h
index 9176c8e845c531720fec86ba6b0b165194fc0ec5..58587e73a9519079fb358021ec8bfb9cbc3ed000 100644
--- a/media/base/data_source.h
+++ b/media/base/data_source.h
@@ -11,6 +11,8 @@
namespace media {
+// TODO(sandersd): Rename to BufferedDataSourceHost and move to
+// content/renderer/media/.
class MEDIA_EXPORT DataSourceHost {
public:
// Set the total size of the media file.
@@ -21,10 +23,6 @@ class MEDIA_EXPORT DataSourceHost {
// pull-based. http://crbug.com/131444
virtual void AddBufferedByteRange(int64 start, int64 end) = 0;
- // Notify the host that time range [start,end] has been buffered.
- virtual void AddBufferedTimeRange(base::TimeDelta start,
- base::TimeDelta end) = 0;
-
protected:
virtual ~DataSourceHost();
};
@@ -38,8 +36,6 @@ class MEDIA_EXPORT DataSource {
DataSource();
virtual ~DataSource();
- virtual void set_host(DataSourceHost* host);
-
// Reads |size| bytes from |position| into |data|. And when the read is done
// or failed, |read_cb| is called with the number of bytes read or
// kReadError in case of error.
@@ -62,12 +58,7 @@ class MEDIA_EXPORT DataSource {
// Values of |bitrate| <= 0 are invalid and should be ignored.
virtual void SetBitrate(int bitrate) = 0;
- protected:
- DataSourceHost* host();
-
private:
- DataSourceHost* host_;
-
DISALLOW_COPY_AND_ASSIGN(DataSource);
};
« no previous file with comments | « content/renderer/media/webmediaplayer_impl.cc ('k') | media/base/data_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698