Index: third_party/WebKit/Source/web/WebArrayBuffer.cpp |
diff --git a/third_party/WebKit/Source/web/WebArrayBuffer.cpp b/third_party/WebKit/Source/web/WebArrayBuffer.cpp |
index 471ce6a5c66f6a7240732a12596746ef239a48e1..b54776fe9f2997b1e9290e663cd5d76a6b5878b8 100644 |
--- a/third_party/WebKit/Source/web/WebArrayBuffer.cpp |
+++ b/third_party/WebKit/Source/web/WebArrayBuffer.cpp |
@@ -31,6 +31,7 @@ |
#include "public/web/WebArrayBuffer.h" |
#include "core/dom/DOMArrayBuffer.h" |
+#include "wtf/PassOwnPtr.h" |
namespace blink { |
@@ -63,18 +64,18 @@ |
return 0; |
} |
-WebArrayBuffer::WebArrayBuffer(DOMArrayBuffer* buffer) |
+WebArrayBuffer::WebArrayBuffer(const PassRefPtr<DOMArrayBuffer>& buffer) |
: m_private(buffer) |
{ |
} |
-WebArrayBuffer& WebArrayBuffer::operator=(DOMArrayBuffer* buffer) |
+WebArrayBuffer& WebArrayBuffer::operator=(const PassRefPtr<DOMArrayBuffer>& buffer) |
{ |
m_private = buffer; |
return *this; |
} |
-WebArrayBuffer::operator DOMArrayBuffer*() const |
+WebArrayBuffer::operator PassRefPtr<DOMArrayBuffer>() const |
{ |
return m_private.get(); |
} |