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

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

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.h
===================================================================
--- Source/WebCore/Modules/mediasource/SourceBuffer.h (revision 125645)
+++ Source/WebCore/Modules/mediasource/SourceBuffer.h (working copy)
@@ -34,7 +34,6 @@
#if ENABLE(MEDIA_SOURCE)
#include "ExceptionCode.h"
-#include "MediaSource.h"
#include <wtf/PassRefPtr.h>
#include <wtf/RefCounted.h>
#include <wtf/text/WTFString.h>
@@ -45,9 +44,9 @@
class SourceBuffer : public RefCounted<SourceBuffer> {
public:
- static PassRefPtr<SourceBuffer> create(const String& id, PassRefPtr<MediaSource> source)
+ static PassRefPtr<SourceBuffer> create(const String& id)
{
- return adoptRef(new SourceBuffer(id, source));
+ return adoptRef(new SourceBuffer(id));
}
virtual ~SourceBuffer();
@@ -60,13 +59,12 @@
const String& id() const { return m_id; }
- void clear() { m_source.clear(); }
+ void clear() { }
private:
- explicit SourceBuffer(const String& id, PassRefPtr<MediaSource>);
+ explicit SourceBuffer(const String& id);
String m_id;
- RefPtr<MediaSource> m_source;
};
} // namespace WebCore
« no previous file with comments | « Source/WebCore/Modules/mediasource/MediaSourceRegistry.cpp ('k') | Source/WebCore/Modules/mediasource/SourceBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698