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

Unified Diff: third_party/WebKit/public/web/WebArrayBuffer.h

Issue 1964183004: Revert of Move DOMArrayBuffer, DOMArrayBufferViews and DataView to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/public/web/WebArrayBuffer.h
diff --git a/third_party/WebKit/public/web/WebArrayBuffer.h b/third_party/WebKit/public/web/WebArrayBuffer.h
index 668bbfdbe72ebe2607e67785d267d03a6434dda5..883e62f2a3e3a8653fb81d72870cac0ac9b9bad0 100644
--- a/third_party/WebKit/public/web/WebArrayBuffer.h
+++ b/third_party/WebKit/public/web/WebArrayBuffer.h
@@ -34,6 +34,10 @@
#include "../platform/WebCommon.h"
#include "../platform/WebPrivatePtr.h"
+#if INSIDE_BLINK
+namespace WTF { template <typename T> class PassRefPtr; }
+#endif
+
namespace blink {
class DOMArrayBuffer;
@@ -60,9 +64,9 @@
BLINK_EXPORT unsigned byteLength() const;
#if INSIDE_BLINK
- BLINK_EXPORT WebArrayBuffer(DOMArrayBuffer*);
- BLINK_EXPORT WebArrayBuffer& operator=(DOMArrayBuffer*);
- BLINK_EXPORT operator DOMArrayBuffer*() const;
+ BLINK_EXPORT WebArrayBuffer(const WTF::PassRefPtr<DOMArrayBuffer>&);
+ BLINK_EXPORT WebArrayBuffer& operator=(const WTF::PassRefPtr<DOMArrayBuffer>&);
+ BLINK_EXPORT operator WTF::PassRefPtr<DOMArrayBuffer>() const;
#endif
protected:
« no previous file with comments | « third_party/WebKit/Source/web/WebPepperSocketImpl.cpp ('k') | third_party/WebKit/public/web/WebArrayBufferView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698