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

Unified Diff: Source/WebCore/Modules/mediasource/SourceBuffer.cpp

Issue 10834324: Revert 124780 - Create a MediaSource object. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1229/
Patch Set: Created 8 years, 4 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
Index: Source/WebCore/Modules/mediasource/SourceBuffer.cpp
===================================================================
--- Source/WebCore/Modules/mediasource/SourceBuffer.cpp (revision 125645)
+++ Source/WebCore/Modules/mediasource/SourceBuffer.cpp (working copy)
@@ -38,9 +38,8 @@
namespace WebCore {
-SourceBuffer::SourceBuffer(const String& id, PassRefPtr<MediaSource> source)
+SourceBuffer::SourceBuffer(const String& id)
: m_id(id)
- , m_source(source)
{
}
@@ -48,34 +47,20 @@
{
}
-PassRefPtr<TimeRanges> SourceBuffer::buffered(ExceptionCode& ec) const
+PassRefPtr<TimeRanges> SourceBuffer::buffered(ExceptionCode&) const
{
- if (!m_source) {
- ec = INVALID_STATE_ERR;
- return 0;
- }
-
- return m_source->buffered(id(), ec);
+ // FIXME(91773): return buffered data from media source.
+ return 0;
}
-void SourceBuffer::append(PassRefPtr<Uint8Array> data, ExceptionCode& ec)
+void SourceBuffer::append(PassRefPtr<Uint8Array>, ExceptionCode&)
{
- if (!m_source) {
- ec = INVALID_STATE_ERR;
- return;
- }
-
- m_source->append(id(), data, ec);
+ // FIXME(91773): append the data to the media source.
}
-void SourceBuffer::abort(ExceptionCode& ec)
+void SourceBuffer::abort(ExceptionCode&)
{
- if (!m_source) {
- ec = INVALID_STATE_ERR;
- return;
- }
-
- m_source->abort(id(), ec);
+ // FIXME(91773): signal the media source to abort this source buffer.
}
} // namespace WebCore
« no previous file with comments | « Source/WebCore/Modules/mediasource/SourceBuffer.h ('k') | Source/WebCore/Modules/mediasource/SourceBufferList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698