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

Unified Diff: WebKit/chromium/src/WorkerFileWriterCallbacksBridge.cpp

Issue 11192017: ********** WebCore blob hacking (Closed) Base URL: http://svn.webkit.org/repository/webkit/trunk/Source/
Patch Set: Created 7 years, 11 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 | « WebKit/chromium/src/WorkerFileWriterCallbacksBridge.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: WebKit/chromium/src/WorkerFileWriterCallbacksBridge.cpp
===================================================================
--- WebKit/chromium/src/WorkerFileWriterCallbacksBridge.cpp (revision 140218)
+++ WebKit/chromium/src/WorkerFileWriterCallbacksBridge.cpp (working copy)
@@ -34,6 +34,7 @@
#if ENABLE(FILE_SYSTEM) && ENABLE(WORKERS)
#include "AsyncFileWriterClient.h"
+#include "BlobData.h"
#include "CrossThreadTask.h"
#include "WebFileWriter.h"
#include "WebWorkerBase.h"
@@ -56,12 +57,12 @@
m_clientOnWorkerThread = 0;
}
-void WorkerFileWriterCallbacksBridge::postWriteToMainThread(long long position, const KURL& data)
+void WorkerFileWriterCallbacksBridge::postWriteToMainThread(long long position, PassRefPtr<BlobDataHandle> blobDataHandle)
{
ASSERT(!m_operationInProgress);
m_operationInProgress = true;
dispatchTaskToMainThread(createCallbackTask(&writeOnMainThread,
- this, position, data));
+ this, position, blobDataHandle));
}
void WorkerFileWriterCallbacksBridge::postTruncateToMainThread(long long length)
@@ -85,9 +86,9 @@
dispatchTaskToMainThread(createCallbackTask(&shutdownOnMainThread, bridge));
}
-void WorkerFileWriterCallbacksBridge::writeOnMainThread(ScriptExecutionContext*, PassRefPtr<WorkerFileWriterCallbacksBridge> bridge, long long position, const KURL& data)
+void WorkerFileWriterCallbacksBridge::writeOnMainThread(ScriptExecutionContext*, PassRefPtr<WorkerFileWriterCallbacksBridge> bridge, long long position, PassRefPtr<WebCore::BlobDataHandle> blobDataHandle)
{
- bridge->m_writer->write(position, WebURL(data));
+ bridge->m_writer->write(position, WebString(blobDataHandle->uuid()));
}
void WorkerFileWriterCallbacksBridge::truncateOnMainThread(ScriptExecutionContext*, PassRefPtr<WorkerFileWriterCallbacksBridge> bridge, long long length)
« no previous file with comments | « WebKit/chromium/src/WorkerFileWriterCallbacksBridge.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698