| Index: public/platform/WebMediaSource.h
|
| diff --git a/public/platform/WebMediaSource.h b/public/platform/WebMediaSource.h
|
| index 702ba4c145612fdcaeae0769d28ed6a088b58d71..3d57563712faffc2121048dbc23e89c0a94c1de2 100644
|
| --- a/public/platform/WebMediaSource.h
|
| +++ b/public/platform/WebMediaSource.h
|
| @@ -31,6 +31,7 @@
|
| #ifndef WebMediaSource_h
|
| #define WebMediaSource_h
|
|
|
| +#include "WebCommon.h"
|
| #include "WebTimeRange.h"
|
| #include "WebURL.h"
|
|
|
| @@ -58,7 +59,21 @@ public:
|
| };
|
|
|
| virtual ~WebMediaSource() { }
|
| - virtual AddStatus addSourceBuffer(const WebString& type, const WebVector<WebString>& codecs, const FrameProcessorChoice, WebSourceBuffer**) = 0;
|
| + // FIXME: Remove addSourceBuffer() that has FrameProcessorChoice, and remove
|
| + // the default implementations for addSourceBuffer() once Chromium
|
| + // implementation of the addSourceBuffer() with no FrameProcessorChoice has
|
| + // landed. See http://crbug.com/249422.
|
| + virtual AddStatus addSourceBuffer(const WebString& type, const WebVector<WebString>& codecs, const FrameProcessorChoice, WebSourceBuffer** webSourceBuffer)
|
| + {
|
| + // This default implementation should never be called for real.
|
| + BLINK_ASSERT_NOT_REACHED();
|
| + return AddStatusReachedIdLimit;
|
| + }
|
| + virtual AddStatus addSourceBuffer(const WebString& type, const WebVector<WebString>& codecs, WebSourceBuffer** webSourceBuffer)
|
| + {
|
| + return addSourceBuffer(type, codecs, WebMediaSource::UseNewFrameProcessor, webSourceBuffer);
|
| + }
|
| +
|
| virtual double duration() = 0;
|
| virtual void setDuration(double) = 0;
|
| virtual void markEndOfStream(EndOfStreamStatus) = 0;
|
|
|