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

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

Issue 10600013: Wired support for file truncating with RemoteFileSystemOperation::OpenFile() method (case when base… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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: content/common/fileapi/file_system_dispatcher.h
diff --git a/content/common/fileapi/file_system_dispatcher.h b/content/common/fileapi/file_system_dispatcher.h
index fb029f0c087a11640909a452b8395473f4c5b00d..bd725de5e77b14f2c5de36943a998d127fad511f 100644
--- a/content/common/fileapi/file_system_dispatcher.h
+++ b/content/common/fileapi/file_system_dispatcher.h
@@ -83,6 +83,8 @@ class FileSystemDispatcher : public IPC::Listener {
int file_flags, // passed to FileUtilProxy::CreateOrOpen
fileapi::FileSystemCallbackDispatcher* dispatcher);
+ bool NotifyFileClosed(const GURL& path);
+
bool CreateSnapshotFile(const GURL& blod_url,
const GURL& file_path,
fileapi::FileSystemCallbackDispatcher* dispatcher);
@@ -104,6 +106,8 @@ class FileSystemDispatcher : public IPC::Listener {
void OnDidOpenFile(
int request_id,
IPC::PlatformFileForTransit file);
+ void OnDidCloseFile(int request_id,
+ base::PlatformFileError error_code);
IDMap<fileapi::FileSystemCallbackDispatcher, IDMapOwnPointer> dispatchers_;

Powered by Google App Engine
This is Rietveld 408576698