| Index: Source/modules/mediastream/RTCSessionDescription.cpp
|
| diff --git a/Source/modules/mediastream/RTCSessionDescription.cpp b/Source/modules/mediastream/RTCSessionDescription.cpp
|
| index 33dad9a09598781558a95acf30884c98e07c7570..0bb35a32ee2058ffd488c6d6ac4c67818d3d36e7 100644
|
| --- a/Source/modules/mediastream/RTCSessionDescription.cpp
|
| +++ b/Source/modules/mediastream/RTCSessionDescription.cpp
|
| @@ -38,6 +38,8 @@
|
|
|
| namespace WebCore {
|
|
|
| +DEFINE_GC_INFO(RTCSessionDescription);
|
| +
|
| static bool verifyType(const String& type)
|
| {
|
| return type == "offer" || type == "pranswer" || type == "answer";
|
| @@ -48,7 +50,7 @@ static String constructIllegalTypeExceptionMessage(const String& type)
|
| return "Illegal value of attribute 'type' : " + type;
|
| }
|
|
|
| -PassRefPtr<RTCSessionDescription> RTCSessionDescription::create(const Dictionary& descriptionInitDict, ExceptionState& exceptionState)
|
| +PassRefPtrWillBeRawPtr<RTCSessionDescription> RTCSessionDescription::create(const Dictionary& descriptionInitDict, ExceptionState& exceptionState)
|
| {
|
| String type;
|
| bool ok = descriptionInitDict.get("type", type);
|
| @@ -60,12 +62,12 @@ PassRefPtr<RTCSessionDescription> RTCSessionDescription::create(const Dictionary
|
| String sdp;
|
| descriptionInitDict.get("sdp", sdp);
|
|
|
| - return adoptRef(new RTCSessionDescription(blink::WebRTCSessionDescription(type, sdp)));
|
| + return adoptRefWillBeNoop(new RTCSessionDescription(blink::WebRTCSessionDescription(type, sdp)));
|
| }
|
|
|
| -PassRefPtr<RTCSessionDescription> RTCSessionDescription::create(blink::WebRTCSessionDescription webSessionDescription)
|
| +PassRefPtrWillBeRawPtr<RTCSessionDescription> RTCSessionDescription::create(blink::WebRTCSessionDescription webSessionDescription)
|
| {
|
| - return adoptRef(new RTCSessionDescription(webSessionDescription));
|
| + return adoptRefWillBeNoop(new RTCSessionDescription(webSessionDescription));
|
| }
|
|
|
| RTCSessionDescription::RTCSessionDescription(blink::WebRTCSessionDescription webSessionDescription)
|
|
|