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

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

Issue 14472008: [FileAPI] Add file open ID and close callback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 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/common/fileapi/file_system_dispatcher.h ('k') | content/common/fileapi/file_system_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/fileapi/file_system_dispatcher.cc
diff --git a/content/common/fileapi/file_system_dispatcher.cc b/content/common/fileapi/file_system_dispatcher.cc
index 95713257bc02603555172f8efc79f7a89b465214..425b00c71b411f583b1127e856ca759e2474c5a9 100644
--- a/content/common/fileapi/file_system_dispatcher.cc
+++ b/content/common/fileapi/file_system_dispatcher.cc
@@ -247,9 +247,9 @@ bool FileSystemDispatcher::OpenFile(
return true;
}
-bool FileSystemDispatcher::NotifyCloseFile(const GURL& file_path) {
+bool FileSystemDispatcher::NotifyCloseFile(int file_open_id) {
return ChildThread::current()->Send(
- new FileSystemHostMsg_NotifyCloseFile(file_path));
+ new FileSystemHostMsg_NotifyCloseFile(file_open_id));
}
bool FileSystemDispatcher::CreateSnapshotFile(
@@ -339,11 +339,13 @@ void FileSystemDispatcher::OnDidWrite(
void FileSystemDispatcher::OnDidOpenFile(
int request_id,
IPC::PlatformFileForTransit file,
+ int file_open_id,
quota::QuotaLimitType quota_policy) {
fileapi::FileSystemCallbackDispatcher* dispatcher =
dispatchers_.Lookup(request_id);
DCHECK(dispatcher);
dispatcher->DidOpenFile(IPC::PlatformFileForTransitToPlatformFile(file),
+ file_open_id,
quota_policy);
dispatchers_.Remove(request_id);
}
« no previous file with comments | « content/common/fileapi/file_system_dispatcher.h ('k') | content/common/fileapi/file_system_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698