Index: Source/modules/mediastream/RTCStatsResponse.h |
diff --git a/Source/modules/mediastream/RTCStatsResponse.h b/Source/modules/mediastream/RTCStatsResponse.h |
index 9bda7feefca2995cad718f46e6cebbebada3bc32..e8313900f066677d4c1068a863ece20cb8d64637 100644 |
--- a/Source/modules/mediastream/RTCStatsResponse.h |
+++ b/Source/modules/mediastream/RTCStatsResponse.h |
@@ -27,6 +27,7 @@ |
#include "bindings/v8/ScriptWrappable.h" |
#include "modules/mediastream/RTCStatsReport.h" |
+#include "platform/heap/Handle.h" |
#include "platform/mediastream/RTCStatsResponseBase.h" |
#include "wtf/HashMap.h" |
#include "wtf/Vector.h" |
@@ -36,18 +37,20 @@ namespace WebCore { |
class RTCStatsResponse FINAL : public RTCStatsResponseBase, public ScriptWrappable { |
public: |
- static PassRefPtr<RTCStatsResponse> create(); |
+ static PassRefPtrWillBeRawPtr<RTCStatsResponse> create(); |
- const Vector<RefPtr<RTCStatsReport> >& result() const { return m_result; } |
+ const WillBeHeapVector<RefPtrWillBeMember<RTCStatsReport> >& result() const { return m_result; } |
- PassRefPtr<RTCStatsReport> namedItem(const AtomicString& name); |
+ PassRefPtrWillBeRawPtr<RTCStatsReport> namedItem(const AtomicString& name); |
virtual size_t addReport(String id, String type, double timestamp) OVERRIDE; |
virtual void addStatistic(size_t report, String name, String value) OVERRIDE; |
+ virtual void trace(Visitor*) OVERRIDE; |
+ |
private: |
RTCStatsResponse(); |
- Vector<RefPtr<RTCStatsReport> > m_result; |
+ WillBeHeapVector<RefPtrWillBeMember<RTCStatsReport> > m_result; |
HashMap<String, int> m_idmap; |
}; |