Index: Source/modules/mediastream/NavigatorUserMediaError.h |
diff --git a/Source/modules/mediastream/NavigatorUserMediaError.h b/Source/modules/mediastream/NavigatorUserMediaError.h |
index 867b2bffdb32208082a91d9d0b46e94f7b114882..24b4a2c0c8c3f7181db941422d19b1c3674aa769 100644 |
--- a/Source/modules/mediastream/NavigatorUserMediaError.h |
+++ b/Source/modules/mediastream/NavigatorUserMediaError.h |
@@ -32,24 +32,26 @@ |
namespace WebCore { |
-class NavigatorUserMediaError FINAL : public RefCounted<NavigatorUserMediaError>, public ScriptWrappable { |
+class NavigatorUserMediaError FINAL : public RefCountedWillBeGarbageCollectedFinalized<NavigatorUserMediaError>, public ScriptWrappable { |
public: |
enum Name { |
NamePermissionDenied, |
NameConstraintNotSatisfied |
}; |
- static PassRefPtr<NavigatorUserMediaError> create(Name, const String& message, const String& constraintName); |
+ static PassRefPtrWillBeRawPtr<NavigatorUserMediaError> create(Name, const String& message, const String& constraintName); |
- static PassRefPtr<NavigatorUserMediaError> create(const String& name, const String& message, const String& constraintName) |
+ static PassRefPtrWillBeRawPtr<NavigatorUserMediaError> create(const String& name, const String& message, const String& constraintName) |
{ |
- return adoptRef(new NavigatorUserMediaError(name, message, constraintName)); |
+ return adoptRefWillBeNoop(new NavigatorUserMediaError(name, message, constraintName)); |
} |
String name() const { return m_name; } |
const String& message() const { return m_message; } |
const String& constraintName() const { return m_constraintName; } |
+ void trace(Visitor*) { } |
+ |
private: |
NavigatorUserMediaError(const String& name, const String& message, const String& constraintName) |
: m_name(name), m_message(message), m_constraintName(constraintName) |