Index: third_party/WebKit/Source/modules/mediastream/HTMLMediaElementMediaStream.h |
diff --git a/third_party/WebKit/Source/modules/mediastream/HTMLMediaElementMediaStream.h b/third_party/WebKit/Source/modules/mediastream/HTMLMediaElementMediaStream.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..fc7093e42c6ffd3d21ee50facd14739eee6d5e56 |
--- /dev/null |
+++ b/third_party/WebKit/Source/modules/mediastream/HTMLMediaElementMediaStream.h |
@@ -0,0 +1,35 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef HTMLMediaElementMediaStream_h |
+#define HTMLMediaElementMediaStream_h |
+ |
+#include "core/html/HTMLMediaElement.h" |
+#include "modules/ModulesExport.h" |
+#include "platform/Supplementable.h" |
+#include "platform/heap/Handle.h" |
+ |
+namespace blink { |
+ |
+class MediaStream; |
+ |
+class MODULES_EXPORT HTMLMediaElementMediaStream final : public NoBaseWillBeGarbageCollectedFinalized<HTMLMediaElementMediaStream>, public WillBeHeapSupplement<HTMLMediaElement> { |
+ WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLMediaElementMediaStream); |
+ USING_FAST_MALLOC_WILL_BE_REMOVED(HTMLMediaElementMediaStream); |
+public: |
+ DECLARE_VIRTUAL_TRACE(); |
+ static MediaStream* srcObject(HTMLMediaElement&); |
+ static void setSrcObject(HTMLMediaElement&, MediaStream*); |
+ |
+private: |
+ HTMLMediaElementMediaStream(); |
+ static HTMLMediaElementMediaStream& from(HTMLMediaElement&); |
+ static const char* supplementName(); |
+ |
+ PersistentWillBeMember<MediaStream> m_srcObject; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif |