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

Unified Diff: public/platform/WebSourceBuffer.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: Addresses acolwell@'s PS4 nits 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: public/platform/WebSourceBuffer.h
diff --git a/public/platform/WebSourceBuffer.h b/public/platform/WebSourceBuffer.h
index 1f34a0c52ab9696ab3baf3b5f732cda54e8c0139..e9349fb3000ed1be87f170b3c588d2f21253a188 100644
--- a/public/platform/WebSourceBuffer.h
+++ b/public/platform/WebSourceBuffer.h
@@ -35,6 +35,8 @@
namespace blink {
+class WebSourceBufferClient;
+
class WebSourceBuffer {
public:
enum AppendMode {
@@ -43,6 +45,13 @@ public:
};
virtual ~WebSourceBuffer() { }
+
+ // This will only be called once and only with a valid pointer.
philipj_slow 2014/09/11 13:38:32 Maybe say that it's never null, since valid is a b
wolenetz 2014/09/11 21:41:17 Done.
+ virtual void setClient(WebSourceBufferClient*)
+ {
+ // FIXME: Remove default implementation once Chromium impl lands.
+ }
+
virtual bool setMode(AppendMode) = 0;
virtual WebTimeRanges buffered() = 0;
@@ -60,6 +69,8 @@ public:
// Set presentation timestamp for the end of append window.
virtual void setAppendWindowEnd(double) = 0;
+ // The client passed to setClient() should never be called after this method
philipj_slow 2014/09/11 13:38:32 I don't understand this comment. Does setClient()
wolenetz 2014/09/11 21:41:17 I've clarified this a bit more. I'm trying to indi
philipj_slow 2014/09/12 08:45:28 That's simple enough, and the updated comments are
+ // is called.
virtual void removedFromMediaSource() = 0;
};

Powered by Google App Engine
This is Rietveld 408576698