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

Unified Diff: Source/modules/mediasource/SourceBuffer.h

Issue 130523002: Preliminary work for unprefixed MSE SourceBuffer.mode manipulation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use assert_equals instead of assert_true(...==...) 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
Index: Source/modules/mediasource/SourceBuffer.h
diff --git a/Source/modules/mediasource/SourceBuffer.h b/Source/modules/mediasource/SourceBuffer.h
index 1d2d2998058a71fece16136e7f6a2c900a93816e..c7ada7c48d875d20f0edd3608e95857cf2660644 100644
--- a/Source/modules/mediasource/SourceBuffer.h
+++ b/Source/modules/mediasource/SourceBuffer.h
@@ -61,10 +61,14 @@ class SourceBuffer : public RefCounted<SourceBuffer>, public ActiveDOMObject, pu
REFCOUNTED_EVENT_TARGET(SourceBuffer);
public:
static PassRefPtr<SourceBuffer> create(PassOwnPtr<blink::WebSourceBuffer>, MediaSource*, GenericEventQueue*);
+ static const AtomicString& segmentsKeyword();
+ static const AtomicString& sequenceKeyword();
virtual ~SourceBuffer();
// SourceBuffer.idl methods
+ const AtomicString& mode() const { return m_mode; }
+ void setMode(const AtomicString&, ExceptionState&);
bool updating() const { return m_updating; }
PassRefPtr<TimeRanges> buffered(ExceptionState&) const;
double timestampOffset() const;
@@ -119,6 +123,7 @@ private:
MediaSource* m_source;
GenericEventQueue* m_asyncEventQueue;
+ AtomicString m_mode;
bool m_updating;
double m_timestampOffset;
double m_appendWindowStart;

Powered by Google App Engine
This is Rietveld 408576698