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

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

Issue 552943002: MSE: Start letting SourceBuffer begin to do initialization segment received algorithm (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated WIP Created 6 years, 3 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/SourceBufferList.h
diff --git a/Source/modules/mediasource/SourceBufferList.h b/Source/modules/mediasource/SourceBufferList.h
index 2772e8a0b8b0657ec832d5fce5781a8f8b3b3d15..1395565450c7d78541a107a04a2126b87b091fe5 100644
--- a/Source/modules/mediasource/SourceBufferList.h
+++ b/Source/modules/mediasource/SourceBufferList.h
@@ -55,7 +55,9 @@ public:
SourceBuffer* item(unsigned long index) const { return (index < m_list.size()) ? m_list[index].get() : 0; }
void add(SourceBuffer*);
+ void insert(size_t position, SourceBuffer*);
void remove(SourceBuffer*);
+ size_t find(SourceBuffer* buffer) { return m_list.find(buffer); }
bool contains(SourceBuffer* buffer) { return m_list.find(buffer) != kNotFound; }
void clear();

Powered by Google App Engine
This is Rietveld 408576698