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

Unified Diff: public/platform/WebSourceBuffer.h

Issue 130523002: Preliminary work for unprefixed MSE SourceBuffer.mode manipulation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Prefix public Blink API AppendMode enum values with AppendMode Created 6 years, 11 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 | « Source/modules/mediasource/SourceBuffer.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebSourceBuffer.h
diff --git a/public/platform/WebSourceBuffer.h b/public/platform/WebSourceBuffer.h
index 6eceac62d1272c247a3b3ee99dcda22238166ec5..b8960df909d5a4444d35ee619d043ded6b410aab 100644
--- a/public/platform/WebSourceBuffer.h
+++ b/public/platform/WebSourceBuffer.h
@@ -37,8 +37,16 @@ namespace blink {
class WebSourceBuffer {
public:
+ enum AppendMode {
+ AppendModeSegments,
+ AppendModeSequence
+ };
+
virtual ~WebSourceBuffer() { }
+ // FIXME: Remove default implementation once Chromium setMode() implementation has landed. See http://crbug.com/249422.
jamesr 2014/01/09 22:15:41 why don't you just land the chromium-side implemen
+ virtual bool setMode(AppendMode) { return true; }
+
virtual WebTimeRanges buffered() = 0;
virtual void append(const unsigned char* data, unsigned length) = 0;
virtual void abort() = 0;
« no previous file with comments | « Source/modules/mediasource/SourceBuffer.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698