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

Unified Diff: webkit/chromeos/fileapi/remote_file_system_operation.cc

Issue 11410019: ********** Chromium Blob hacking (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 10 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/chromeos/fileapi/remote_file_system_operation.h ('k') | webkit/fileapi/file_system_operation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/chromeos/fileapi/remote_file_system_operation.cc
===================================================================
--- webkit/chromeos/fileapi/remote_file_system_operation.cc (revision 183651)
+++ webkit/chromeos/fileapi/remote_file_system_operation.cc (working copy)
@@ -110,7 +110,7 @@
void RemoteFileSystemOperation::Write(
const net::URLRequestContext* url_request_context,
const FileSystemURL& url,
- const GURL& blob_url,
+ scoped_ptr<webkit_blob::BlobDataHandle> blob_handle,
int64 offset,
const WriteCallback& callback) {
DCHECK(SetPendingOperationType(kOperationWrite));
@@ -127,8 +127,12 @@
url,
offset))));
+ // Use a URLRequest to read the blob data that's to be written to the file.
scoped_ptr<net::URLRequest> blob_request(url_request_context->CreateRequest(
- blob_url, file_writer_delegate_.get()));
+ GURL("blob://see_user_data/"), file_writer_delegate_.get()));
+ webkit_blob::BlobProtocolHandler::SetRequestedBlobDataHandle(
+ blob_request.get(),
+ blob_handle.Pass());
file_writer_delegate_->Start(blob_request.Pass());
}
« no previous file with comments | « webkit/chromeos/fileapi/remote_file_system_operation.h ('k') | webkit/fileapi/file_system_operation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698