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

Unified Diff: WebCore/fileapi/FileReaderLoader.cpp

Issue 11192017: ********** WebCore blob hacking (Closed) Base URL: http://svn.webkit.org/repository/webkit/trunk/Source/
Patch Set: Created 8 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: WebCore/fileapi/FileReaderLoader.cpp
===================================================================
--- WebCore/fileapi/FileReaderLoader.cpp (revision 132804)
+++ WebCore/fileapi/FileReaderLoader.cpp (working copy)
@@ -36,12 +36,12 @@
#include "Blob.h"
#include "BlobURL.h"
+#include "BlobRegistry.h"
#include "FileReaderLoaderClient.h"
#include "ResourceRequest.h"
#include "ResourceResponse.h"
#include "ScriptExecutionContext.h"
#include "TextResourceDecoder.h"
-#include "ThreadableBlobRegistry.h"
#include "ThreadableLoader.h"
#include <wtf/ArrayBuffer.h>
#include <wtf/PassRefPtr.h>
@@ -69,7 +69,7 @@
{
terminate();
if (!m_urlForReading.isEmpty())
- ThreadableBlobRegistry::unregisterBlobURL(m_urlForReading);
+ blobRegistry().revokePublicBlobURL(m_urlForReading);
}
void FileReaderLoader::start(ScriptExecutionContext* scriptExecutionContext, Blob* blob)
@@ -80,7 +80,7 @@
failed(FileError::SECURITY_ERR);
return;
}
- ThreadableBlobRegistry::registerBlobURL(scriptExecutionContext->securityOrigin(), m_urlForReading, blob->url());
+ blobRegistry().registerPublicBlobURL(scriptExecutionContext->securityOrigin(), m_urlForReading, blob->blobDataHandle());
// Construct and load the request.
ResourceRequest request(m_urlForReading);

Powered by Google App Engine
This is Rietveld 408576698