Index: third_party/WebKit/Source/modules/mediasource/SourceBufferVideoTrack.h |
diff --git a/third_party/WebKit/Source/core/loader/PrerendererClient.h b/third_party/WebKit/Source/modules/mediasource/SourceBufferVideoTrack.h |
similarity index 71% |
copy from third_party/WebKit/Source/core/loader/PrerendererClient.h |
copy to third_party/WebKit/Source/modules/mediasource/SourceBufferVideoTrack.h |
index 10bc6cfaa9bce8060ec821da8c08ad011836be32..50e4e480de6bff98f000029b5748edea29c79bb1 100644 |
--- a/third_party/WebKit/Source/core/loader/PrerendererClient.h |
+++ b/third_party/WebKit/Source/modules/mediasource/SourceBufferVideoTrack.h |
@@ -1,5 +1,5 @@ |
/* |
- * Copyright (C) 2012 Google Inc. All rights reserved. |
+ * Copyright (C) 2016 Google Inc. All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions are |
@@ -26,34 +26,36 @@ |
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
- * |
*/ |
-#ifndef PrerendererClient_h |
-#define PrerendererClient_h |
+#ifndef SourceBufferVideoTrack_h |
+#define SourceBufferVideoTrack_h |
-#include "core/CoreExport.h" |
-#include "core/page/Page.h" |
#include "platform/Supplementable.h" |
+#include "wtf/Allocator.h" |
namespace blink { |
-class Page; |
-class Prerender; |
+class VideoTrack; |
+class SourceBuffer; |
-class CORE_EXPORT PrerendererClient : public WillBeHeapSupplement<Page> { |
+class SourceBufferVideoTrack final : public GarbageCollectedFinalized<SourceBufferVideoTrack>, public HeapSupplement<VideoTrack> { |
+ USING_GARBAGE_COLLECTED_MIXIN(SourceBufferVideoTrack); |
public: |
- virtual void willAddPrerender(Prerender*) = 0; |
+ static SourceBufferVideoTrack& from(VideoTrack&); |
+ virtual ~SourceBufferVideoTrack(); |
+ |
+ static SourceBuffer* sourceBuffer(VideoTrack&); |
+ DECLARE_VIRTUAL_TRACE(); |
+ |
+private: |
static const char* supplementName(); |
- static PrerendererClient* from(Page*); |
+ explicit SourceBufferVideoTrack(SourceBuffer*); |
-protected: |
- PrerendererClient() { } |
+ WeakMember<SourceBuffer> m_sourceBuffer; |
}; |
-CORE_EXPORT void providePrerendererClientTo(Page&, PrerendererClient*); |
- |
} // namespace blink |
-#endif // PrerendererClient_h |
+#endif |