Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / public / platform / WebSourceBuffer.h
index 1f34a0c..689504b 100644 (file)
@@ -35,6 +35,8 @@
 
 namespace blink {
 
+class WebSourceBufferClient;
+
 class WebSourceBuffer {
 public:
     enum AppendMode {
@@ -43,6 +45,11 @@ public:
     };
 
     virtual ~WebSourceBuffer() { }
+
+    // This will only be called once and only with a non-null pointer to a
+    // client whose ownership is not transferred to this WebSourceBuffer.
+    virtual void setClient(WebSourceBufferClient*) = 0;
+
     virtual bool setMode(AppendMode) = 0;
     virtual WebTimeRanges buffered() = 0;
 
@@ -60,6 +67,8 @@ public:
     // Set presentation timestamp for the end of append window.
     virtual void setAppendWindowEnd(double) = 0;
 
+    // After this method is called, this WebSourceBuffer should never use the
+    // client pointer passed to setClient().
     virtual void removedFromMediaSource() = 0;
 };