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

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

Issue 23992003: blob hacking webcore style (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
« no previous file with comments | « Source/core/platform/network/FormData.cpp ('k') | Source/modules/filesystem/FileWriter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/xml/XMLHttpRequest.cpp
diff --git a/Source/core/xml/XMLHttpRequest.cpp b/Source/core/xml/XMLHttpRequest.cpp
index b60973a911ecc7a8e346084604cb21d1519d96a8..8dbe677b6ff77d36c6aec99d90a5d5cc0ddf6d0e 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);
« no previous file with comments | « Source/core/platform/network/FormData.cpp ('k') | Source/modules/filesystem/FileWriter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698