Index: Source/modules/mediastream/MediaDeviceInfo.h |
diff --git a/Source/modules/mediastream/MediaDeviceInfo.h b/Source/modules/mediastream/MediaDeviceInfo.h |
index 36546208886c6071e8369def3b46bc0ab96a6240..2309fd5bca4af01264199ef38383b96e41fbccd9 100644 |
--- a/Source/modules/mediastream/MediaDeviceInfo.h |
+++ b/Source/modules/mediastream/MediaDeviceInfo.h |
@@ -26,6 +26,7 @@ |
#ifndef MediaDeviceInfo_h |
#define MediaDeviceInfo_h |
+#include "heap/Handle.h" |
#include "public/platform/WebMediaDeviceInfo.h" |
#include "wtf/PassRefPtr.h" |
#include "wtf/RefCounted.h" |
@@ -33,22 +34,25 @@ |
namespace WebCore { |
-class MediaDeviceInfo : public RefCounted<MediaDeviceInfo> { |
+class MediaDeviceInfo : public RefCountedWillBeGarbageCollected<MediaDeviceInfo> { |
+ DECLARE_GC_INFO; |
haraken
2014/02/26 13:58:37
You can drop DECLARE_GC_INFO now. The same comment
keishi
2014/02/27 07:33:34
Done.
|
public: |
- static PassRefPtr<MediaDeviceInfo> create(const blink::WebMediaDeviceInfo&); |
+ static PassRefPtrWillBeRawPtr<MediaDeviceInfo> create(const blink::WebMediaDeviceInfo&); |
String deviceId() const; |
String kind() const; |
String label() const; |
String groupId() const; |
+ void trace(Visitor*) { } |
+ |
private: |
explicit MediaDeviceInfo(const blink::WebMediaDeviceInfo&); |
blink::WebMediaDeviceInfo m_webMediaDeviceInfo; |
}; |
-typedef Vector<RefPtr<MediaDeviceInfo> > MediaDeviceInfoVector; |
+typedef WillBeHeapVector<RefPtrWillBeMember<MediaDeviceInfo> > MediaDeviceInfoVector; |
} // namespace WebCore |