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

Unified Diff: Source/core/xml/XMLHttpRequest.cpp

Issue 26435003: WebCore blob hacking (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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: Source/core/xml/XMLHttpRequest.cpp
diff --git a/Source/core/xml/XMLHttpRequest.cpp b/Source/core/xml/XMLHttpRequest.cpp
index cb18a7cc2f33c434703db55aacefa35f0e4ae030..3af686d1ea6db01da2d63f8ba8f474e4a7f28383 100644
--- a/Source/core/xml/XMLHttpRequest.cpp
+++ b/Source/core/xml/XMLHttpRequest.cpp
@@ -300,7 +300,7 @@ Blob* XMLHttpRequest::responseBlob()
blobData->setContentType(responseMIMEType()); // responseMIMEType defaults to text/xml which may be incorrect.
m_binaryResponseBuilder.clear();
}
- m_responseBlob = Blob::create(blobData.release(), size);
+ m_responseBlob = Blob::create(BlobDataHandle::create(blobData.release(), size));
}
return m_responseBlob.get();
@@ -665,7 +665,7 @@ void XMLHttpRequest::send(const String& body, ExceptionState& es)
void XMLHttpRequest::send(Blob* body, ExceptionState& es)
{
- LOG(Network, "XMLHttpRequest %p send() Blob '%s'", this, body->url().elidedString().utf8().data());
+ LOG(Network, "XMLHttpRequest %p send() Blob '%s'", this, body->uuid().utf8().data());
if (!initSend(es))
return;
@@ -687,7 +687,7 @@ void XMLHttpRequest::send(Blob* body, ExceptionState& es)
if (body->isFile())
m_requestEntityBody->appendFile(toFile(body)->path());
else
- m_requestEntityBody->appendBlob(body->url());
+ m_requestEntityBody->appendBlob(body->uuid(), body->blobDataHandle());
}
createRequest(es);

Powered by Google App Engine
This is Rietveld 408576698