Chromium Code Reviews| Index: Source/core/html/MediaKeyError.h |
| diff --git a/Source/core/html/MediaKeyError.h b/Source/core/html/MediaKeyError.h |
| index 710411f1e77423403b5c69bba9382f8a3fb6396b..0e029af874ac6f5e3cb872bc3275f03813889ca4 100644 |
| --- a/Source/core/html/MediaKeyError.h |
| +++ b/Source/core/html/MediaKeyError.h |
| @@ -27,12 +27,13 @@ |
| #define MediaKeyError_h |
| #include "bindings/v8/ScriptWrappable.h" |
| +#include "platform/heap/Handle.h" |
| #include "wtf/PassRefPtr.h" |
| #include "wtf/RefCounted.h" |
| namespace WebCore { |
| -class MediaKeyError : public RefCounted<MediaKeyError>, public ScriptWrappable { |
| +class MediaKeyError FINAL : public RefCountedWillBeGarbageCollectedFinalized<MediaKeyError>, public ScriptWrappable { |
| public: |
| enum { |
| MEDIA_KEYERR_UNKNOWN = 1, |
| @@ -44,11 +45,16 @@ public: |
| }; |
| typedef unsigned short Code; |
| - static PassRefPtr<MediaKeyError> create(Code code, unsigned long systemCode = 0) { return adoptRef(new MediaKeyError(code, systemCode)); } |
| + static PassRefPtrWillBeRawPtr<MediaKeyError> create(Code code, unsigned long systemCode = 0) |
| + { |
| + return adoptRefWillBeNoop(new MediaKeyError(code, systemCode)); |
| + } |
| Code code() const { return m_code; } |
| unsigned long systemCode() { return m_systemCode; } |
| + void trace(Visitor*) { } |
| + |
| private: |
| explicit MediaKeyError(Code code, unsigned long systemCode) : m_code(code), m_systemCode(systemCode) |
|
haraken
2014/06/23 10:49:16
Drop explicit.
sof
2014/06/23 10:56:51
Done.
|
| { |