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

Unified Diff: third_party/WebKit/Source/modules/mediastream/HTMLMediaElementMediaStream.h

Issue 1815033003: Add srcObject attribute of type MediaStream to HTMLMediaElement. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix listing tests Created 4 years, 9 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: 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;
haraken 2016/03/18 23:37:40 Are you sure that the Persistent handle doesn't ca
Guido Urdaneta 2016/03/20 12:16:30 I ran a few experiments and observed that the life
+};
+
+} // namespace blink
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698