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

Unified Diff: third_party/WebKit/Source/core/events/MessageEvent.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/Source/core/events/MessageEvent.h
diff --git a/third_party/WebKit/Source/core/events/MessageEvent.h b/third_party/WebKit/Source/core/events/MessageEvent.h
index 1f961bec488afe92409f4f4dc42c18bb999d8de7..673dc97ea939ecc7a7662750c4d78c53de933fc5 100644
--- a/third_party/WebKit/Source/core/events/MessageEvent.h
+++ b/third_party/WebKit/Source/core/events/MessageEvent.h
@@ -67,7 +67,7 @@
{
return new MessageEvent(data, origin, suborigin);
}
- static MessageEvent* create(DOMArrayBuffer* data, const String& origin = String(), const String& suborigin = String())
+ static MessageEvent* create(PassRefPtr<DOMArrayBuffer> data, const String& origin = String(), const String& suborigin = String())
{
return new MessageEvent(data, origin, suborigin);
}
@@ -122,14 +122,14 @@
MessageEvent(const String& data, const String& origin, const String& suborigin);
MessageEvent(Blob* data, const String& origin, const String& suborigin);
- MessageEvent(DOMArrayBuffer* data, const String& origin, const String& suborigin);
+ MessageEvent(PassRefPtr<DOMArrayBuffer> data, const String& origin, const String& suborigin);
DataType m_dataType;
ScriptValue m_dataAsScriptValue;
RefPtr<SerializedScriptValue> m_dataAsSerializedScriptValue;
String m_dataAsString;
Member<Blob> m_dataAsBlob;
- Member<DOMArrayBuffer> m_dataAsArrayBuffer;
+ RefPtr<DOMArrayBuffer> m_dataAsArrayBuffer;
String m_origin;
String m_lastEventId;
Member<EventTarget> m_source;
« no previous file with comments | « third_party/WebKit/Source/core/dom/SharedArrayBuffer.idl ('k') | third_party/WebKit/Source/core/events/MessageEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698