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

Unified Diff: content/child/fileapi/file_system_dispatcher.cc

Issue 23223003: Chromium Blob hacking (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | « content/child/fileapi/file_system_dispatcher.h ('k') | content/child/fileapi/webfilewriter_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/fileapi/file_system_dispatcher.cc
diff --git a/content/child/fileapi/file_system_dispatcher.cc b/content/child/fileapi/file_system_dispatcher.cc
index b7a13671cfeecb823528696e605368be8b352c83..095dc58e27f05acc65bf16c6c353ff0cbabff351 100644
--- a/content/child/fileapi/file_system_dispatcher.cc
+++ b/content/child/fileapi/file_system_dispatcher.cc
@@ -272,7 +272,7 @@ void FileSystemDispatcher::Truncate(
*request_id_out = request_id;
}
-void FileSystemDispatcher::Write(
+void FileSystemDispatcher::WriteDeprecated(
const GURL& path,
const GURL& blob_url,
int64 offset,
@@ -282,7 +282,24 @@ void FileSystemDispatcher::Write(
int request_id = dispatchers_.Add(
CallbackDispatcher::Create(success_callback, error_callback));
ChildThread::current()->Send(
- new FileSystemHostMsg_Write(request_id, path, blob_url, offset));
+ new FileSystemHostMsg_WriteDeprecated(request_id, path,
+ blob_url, offset));
+
+ if (request_id_out)
+ *request_id_out = request_id;
+}
+
+void FileSystemDispatcher::Write(
+ const GURL& path,
+ const std::string& blob_id,
+ int64 offset,
+ int* request_id_out,
+ const WriteCallback& success_callback,
+ const StatusCallback& error_callback) {
+ int request_id = dispatchers_.Add(
+ CallbackDispatcher::Create(success_callback, error_callback));
+ ChildThread::current()->Send(
+ new FileSystemHostMsg_Write(request_id, path, blob_id, offset));
if (request_id_out)
*request_id_out = request_id;
« no previous file with comments | « content/child/fileapi/file_system_dispatcher.h ('k') | content/child/fileapi/webfilewriter_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698