Index: Source/modules/mediastream/SourceInfo.h |
diff --git a/Source/modules/mediastream/SourceInfo.h b/Source/modules/mediastream/SourceInfo.h |
index 57349887efa01bd6e935d96241316944bc924b1c..2cc1f807ad62b6fbed3d8ca61c954b6674643bb1 100644 |
--- a/Source/modules/mediastream/SourceInfo.h |
+++ b/Source/modules/mediastream/SourceInfo.h |
@@ -34,22 +34,25 @@ |
namespace WebCore { |
-class SourceInfo : public RefCounted<SourceInfo>, public ScriptWrappable { |
+class SourceInfo : public RefCountedWillBeGarbageCollectedFinalized<SourceInfo>, public ScriptWrappable { |
+ DECLARE_GC_INFO; |
public: |
- static PassRefPtr<SourceInfo> create(const blink::WebSourceInfo&); |
+ static PassRefPtrWillBeRawPtr<SourceInfo> create(const blink::WebSourceInfo&); |
String id() const; |
String kind() const; |
String label() const; |
String facing() const; |
+ void trace(Visitor*) { } |
+ |
private: |
explicit SourceInfo(const blink::WebSourceInfo&); |
blink::WebSourceInfo m_webSourceInfo; |
}; |
-typedef Vector<RefPtr<SourceInfo> > SourceInfoVector; |
+typedef WillBePersistentHeapVector<RefPtrWillBeMember<SourceInfo> > SourceInfoVector; |
haraken
2014/02/21 10:47:05
This is used in MediaStreamTrackSourcesRequest, wh
keishi
2014/02/25 07:45:12
How do I move a class in platform dir to the heap?
tkent
2014/02/25 09:04:46
I think we may add "+heap" to platform/DEPS if hea
keishi
2014/02/26 06:14:59
I had to add heap to the dependencies of platform.
tkent
2014/02/26 06:22:01
Adding ../heap/blink_heap.gyp:blink_heap to platfo
|
} // namespace WebCore |