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

Unified Diff: Source/modules/mediastream/RTCStatsResponse.h

Issue 173363002: Move mediastream module to oilpan transition types (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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: 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;
};

Powered by Google App Engine
This is Rietveld 408576698