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

Unified Diff: Source/modules/mediastream/NavigatorUserMediaError.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/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)

Powered by Google App Engine
This is Rietveld 408576698