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

Unified Diff: third_party/WebKit/Source/core/fileapi/Blob.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/fileapi/Blob.h
diff --git a/third_party/WebKit/Source/core/fileapi/Blob.h b/third_party/WebKit/Source/core/fileapi/Blob.h
index 4c411c4f695a355bab2f5f031d3d248ce9af3207..92785afcf246f891b7c7d32b10ebd61d25b663e6 100644
--- a/third_party/WebKit/Source/core/fileapi/Blob.h
+++ b/third_party/WebKit/Source/core/fileapi/Blob.h
@@ -41,7 +41,6 @@
#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 {
@@ -117,10 +116,10 @@ protected:
for (size_t i = 0; i < parts.size(); ++i) {
const ItemType& item = parts[i];
if (item.isArrayBuffer()) {
- RefPtr<DOMArrayBuffer> arrayBuffer = item.getAsArrayBuffer();
+ DOMArrayBuffer* arrayBuffer = item.getAsArrayBuffer();
blobData->appendBytes(arrayBuffer->data(), arrayBuffer->byteLength());
} else if (item.isArrayBufferView()) {
- RefPtr<DOMArrayBufferView> arrayBufferView = item.getAsArrayBufferView();
+ DOMArrayBufferView* arrayBufferView = item.getAsArrayBufferView();
blobData->appendBytes(arrayBufferView->baseAddress(), arrayBufferView->byteLength());
} else if (item.isBlob()) {
item.getAsBlob()->appendTo(*blobData);

Powered by Google App Engine
This is Rietveld 408576698