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

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

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.cpp
diff --git a/Source/modules/mediastream/RTCStatsResponse.cpp b/Source/modules/mediastream/RTCStatsResponse.cpp
index 626546882b2349bac87eed50078e482bdacb9d50..7701a6cc9e3923427f1e263873f4615b279bd2e7 100644
--- a/Source/modules/mediastream/RTCStatsResponse.cpp
+++ b/Source/modules/mediastream/RTCStatsResponse.cpp
@@ -28,9 +28,9 @@
namespace WebCore {
-PassRefPtr<RTCStatsResponse> RTCStatsResponse::create()
+PassRefPtrWillBeRawPtr<RTCStatsResponse> RTCStatsResponse::create()
{
- return adoptRef(new RTCStatsResponse());
+ return adoptRefWillBeNoop(new RTCStatsResponse());
}
RTCStatsResponse::RTCStatsResponse()
@@ -38,7 +38,7 @@ RTCStatsResponse::RTCStatsResponse()
ScriptWrappable::init(this);
}
-PassRefPtr<RTCStatsReport> RTCStatsResponse::namedItem(const AtomicString& name)
+PassRefPtrWillBeRawPtr<RTCStatsReport> RTCStatsResponse::namedItem(const AtomicString& name)
{
if (m_idmap.find(name) != m_idmap.end())
return m_result[m_idmap.get(name)];
@@ -58,4 +58,9 @@ void RTCStatsResponse::addStatistic(size_t report, String name, String value)
m_result[report]->addStatistic(name, value);
}
+void RTCStatsResponse::trace(Visitor* visitor)
+{
+ visitor->trace(m_result);
+}
+
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698