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

Unified Diff: third_party/WebKit/Source/core/dom/DOMArrayBufferBase.h

Issue 1878463002: Move DOMArrayBuffer, DOMArrayBufferViews and DataView to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tidy Created 4 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: third_party/WebKit/Source/core/dom/DOMArrayBufferBase.h
diff --git a/third_party/WebKit/Source/core/dom/DOMArrayBufferBase.h b/third_party/WebKit/Source/core/dom/DOMArrayBufferBase.h
index 1ad25ca13884da1a5523da6c1af0ad6c6bc9454c..de9ddcfacbf864c993211b8ed4cb1e344e7fbe21 100644
--- a/third_party/WebKit/Source/core/dom/DOMArrayBufferBase.h
+++ b/third_party/WebKit/Source/core/dom/DOMArrayBufferBase.h
@@ -7,12 +7,12 @@
#include "bindings/core/v8/ScriptWrappable.h"
#include "core/CoreExport.h"
+#include "platform/heap/Handle.h"
#include "wtf/ArrayBuffer.h"
-#include "wtf/RefCounted.h"
namespace blink {
-class CORE_EXPORT DOMArrayBufferBase : public RefCounted<DOMArrayBufferBase>, public ScriptWrappable {
+class CORE_EXPORT DOMArrayBufferBase : public GarbageCollectedFinalized<DOMArrayBufferBase>, public ScriptWrappable {
public:
virtual ~DOMArrayBufferBase() { }
@@ -33,6 +33,8 @@ public:
return v8::Local<v8::Object>();
}
+ DEFINE_INLINE_VIRTUAL_TRACE() { }
+
protected:
explicit DOMArrayBufferBase(PassRefPtr<WTF::ArrayBuffer> buffer)
: m_buffer(buffer)
@@ -45,4 +47,4 @@ protected:
} // namespace blink
-#endif // DOMArrayBuffer_h
+#endif // DOMArrayBufferBase_h

Powered by Google App Engine
This is Rietveld 408576698