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

Unified Diff: Source/core/html/MediaKeyError.h

Issue 331803005: Oilpan: move MediaKeyError to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Drop explicit Created 6 years, 6 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
« no previous file with comments | « Source/bindings/v8/Dictionary.cpp ('k') | Source/core/html/MediaKeyError.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/MediaKeyError.h
diff --git a/Source/core/html/MediaKeyError.h b/Source/core/html/MediaKeyError.h
index 710411f1e77423403b5c69bba9382f8a3fb6396b..2c7d8f276173c65a1cefb9bc89bce1c7b2284c58 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,13 +45,18 @@ 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)
+ MediaKeyError(Code code, unsigned long systemCode) : m_code(code), m_systemCode(systemCode)
{
ScriptWrappable::init(this);
}
« no previous file with comments | « Source/bindings/v8/Dictionary.cpp ('k') | Source/core/html/MediaKeyError.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698