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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef HTMLMediaElementMediaStream_h
6 #define HTMLMediaElementMediaStream_h
7
8 #include "core/html/HTMLMediaElement.h"
9 #include "modules/ModulesExport.h"
10 #include "platform/Supplementable.h"
11 #include "platform/heap/Handle.h"
12
13 namespace blink {
14
15 class MediaStream;
16
17 class MODULES_EXPORT HTMLMediaElementMediaStream final : public NoBaseWillBeGarb ageCollectedFinalized<HTMLMediaElementMediaStream>, public WillBeHeapSupplement< HTMLMediaElement> {
18 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLMediaElementMediaStream);
19 USING_FAST_MALLOC_WILL_BE_REMOVED(HTMLMediaElementMediaStream);
20 public:
21 DECLARE_VIRTUAL_TRACE();
22 static MediaStream* srcObject(HTMLMediaElement&);
23 static void setSrcObject(HTMLMediaElement&, MediaStream*);
24
25 private:
26 HTMLMediaElementMediaStream();
27 static HTMLMediaElementMediaStream& from(HTMLMediaElement&);
28 static const char* supplementName();
29
30 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
31 };
32
33 } // namespace blink
34
35 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698