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

Unified Diff: third_party/WebKit/Source/core/dom/DOMArrayBuffer.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/DOMArrayBuffer.h
diff --git a/third_party/WebKit/Source/core/dom/DOMArrayBuffer.h b/third_party/WebKit/Source/core/dom/DOMArrayBuffer.h
index 583be56308ff58badf8e21fb6e6b0e8bbcc0d684..840cb83bba1a152fa1a333ec2fe4a1b753a8866a 100644
--- a/third_party/WebKit/Source/core/dom/DOMArrayBuffer.h
+++ b/third_party/WebKit/Source/core/dom/DOMArrayBuffer.h
@@ -14,35 +14,35 @@ namespace blink {
class CORE_EXPORT DOMArrayBuffer final : public DOMArrayBufferBase {
DEFINE_WRAPPERTYPEINFO();
public:
- static PassRefPtr<DOMArrayBuffer> create(PassRefPtr<WTF::ArrayBuffer> buffer)
+ static DOMArrayBuffer* create(PassRefPtr<WTF::ArrayBuffer> buffer)
{
- return adoptRef(new DOMArrayBuffer(buffer));
+ return new DOMArrayBuffer(buffer);
}
- static PassRefPtr<DOMArrayBuffer> create(unsigned numElements, unsigned elementByteSize)
+ static DOMArrayBuffer* create(unsigned numElements, unsigned elementByteSize)
{
return create(WTF::ArrayBuffer::create(numElements, elementByteSize));
}
- static PassRefPtr<DOMArrayBuffer> create(const void* source, unsigned byteLength)
+ static DOMArrayBuffer* create(const void* source, unsigned byteLength)
{
return create(WTF::ArrayBuffer::create(source, byteLength));
}
- static PassRefPtr<DOMArrayBuffer> create(WTF::ArrayBufferContents& contents)
+ static DOMArrayBuffer* create(WTF::ArrayBufferContents& contents)
{
return create(WTF::ArrayBuffer::create(contents));
}
// Only for use by XMLHttpRequest::responseArrayBuffer and
// Internals::serializeObject.
- static PassRefPtr<DOMArrayBuffer> createUninitialized(unsigned numElements, unsigned elementByteSize)
+ static DOMArrayBuffer* createUninitialized(unsigned numElements, unsigned elementByteSize)
{
return create(WTF::ArrayBuffer::createUninitialized(numElements, elementByteSize));
}
- PassRefPtr<DOMArrayBuffer> slice(int begin, int end) const
+ DOMArrayBuffer* slice(int begin, int end) const
{
return create(buffer()->slice(begin, end));
}
- PassRefPtr<DOMArrayBuffer> slice(int begin) const
+ DOMArrayBuffer* slice(int begin) const
{
return create(buffer()->slice(begin));
}

Powered by Google App Engine
This is Rietveld 408576698