Index: Source/modules/mediastream/RTCSessionDescription.cpp |
diff --git a/Source/modules/mediastream/RTCSessionDescription.cpp b/Source/modules/mediastream/RTCSessionDescription.cpp |
index 4a2b18e16036ff9f32715413c6614bba974190cc..578c1538967ae1c15160aa747c4195c254a9f5bb 100644 |
--- a/Source/modules/mediastream/RTCSessionDescription.cpp |
+++ b/Source/modules/mediastream/RTCSessionDescription.cpp |
@@ -33,7 +33,6 @@ |
#include "modules/mediastream/RTCSessionDescription.h" |
#include "bindings/v8/Dictionary.h" |
-#include "bindings/v8/ExceptionState.h" |
#include "core/dom/ExceptionCode.h" |
#include "public/platform/WebRTCSessionDescription.h" |
@@ -44,19 +43,19 @@ static bool verifyType(const String& type) |
return type == "offer" || type == "pranswer" || type == "answer"; |
} |
-PassRefPtr<RTCSessionDescription> RTCSessionDescription::create(const Dictionary& dictionary, ExceptionState& es) |
+PassRefPtr<RTCSessionDescription> RTCSessionDescription::create(const Dictionary& dictionary, ExceptionCode& ec) |
{ |
String type; |
bool ok = dictionary.get("type", type); |
if (!ok || !verifyType(type)) { |
- es.throwDOMException(TypeMismatchError); |
+ ec = TypeMismatchError; |
return 0; |
} |
String sdp; |
ok = dictionary.get("sdp", sdp); |
if (!ok || sdp.isEmpty()) { |
- es.throwDOMException(TypeMismatchError); |
+ ec = TypeMismatchError; |
return 0; |
} |
@@ -83,12 +82,12 @@ String RTCSessionDescription::type() |
return m_webSessionDescription.type(); |
} |
-void RTCSessionDescription::setType(const String& type, ExceptionState& es) |
+void RTCSessionDescription::setType(const String& type, ExceptionCode& ec) |
{ |
if (verifyType(type)) |
m_webSessionDescription.setType(type); |
else |
- es.throwDOMException(TypeMismatchError); |
+ ec = TypeMismatchError; |
} |
String RTCSessionDescription::sdp() |
@@ -96,7 +95,7 @@ String RTCSessionDescription::sdp() |
return m_webSessionDescription.sdp(); |
} |
-void RTCSessionDescription::setSdp(const String& sdp, ExceptionState& es) |
+void RTCSessionDescription::setSdp(const String& sdp, ExceptionCode& ec) |
{ |
m_webSessionDescription.setSDP(sdp); |
} |