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

Unified Diff: third_party/WebKit/Source/core/fileapi/Blob.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/fileapi/Blob.h
diff --git a/third_party/WebKit/Source/core/fileapi/Blob.h b/third_party/WebKit/Source/core/fileapi/Blob.h
index 92785afcf246f891b7c7d32b10ebd61d25b663e6..4c411c4f695a355bab2f5f031d3d248ce9af3207 100644
--- a/third_party/WebKit/Source/core/fileapi/Blob.h
+++ b/third_party/WebKit/Source/core/fileapi/Blob.h
@@ -41,6 +41,7 @@
#include "platform/blob/BlobData.h"
#include "platform/heap/Handle.h"
#include "wtf/PassRefPtr.h"
+#include "wtf/RefCounted.h"
#include "wtf/text/WTFString.h"
namespace blink {
@@ -116,10 +117,10 @@
for (size_t i = 0; i < parts.size(); ++i) {
const ItemType& item = parts[i];
if (item.isArrayBuffer()) {
- DOMArrayBuffer* arrayBuffer = item.getAsArrayBuffer();
+ RefPtr<DOMArrayBuffer> arrayBuffer = item.getAsArrayBuffer();
blobData->appendBytes(arrayBuffer->data(), arrayBuffer->byteLength());
} else if (item.isArrayBufferView()) {
- DOMArrayBufferView* arrayBufferView = item.getAsArrayBufferView();
+ RefPtr<DOMArrayBufferView> arrayBufferView = item.getAsArrayBufferView();
blobData->appendBytes(arrayBufferView->baseAddress(), arrayBufferView->byteLength());
} else if (item.isBlob()) {
item.getAsBlob()->appendTo(*blobData);
« no previous file with comments | « third_party/WebKit/Source/core/events/MessageEvent.cpp ('k') | third_party/WebKit/Source/core/fileapi/FileReader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698