Index: chrome/browser/chromeos/drive/fileapi_worker.h |
diff --git a/chrome/browser/chromeos/drive/fileapi_worker.h b/chrome/browser/chromeos/drive/fileapi_worker.h |
index d26c65e0f17c8aac3de64ec18f16099100e6fda5..0e65f125f44e10e13c79c66aeee90101bf573cab 100644 |
--- a/chrome/browser/chromeos/drive/fileapi_worker.h |
+++ b/chrome/browser/chromeos/drive/fileapi_worker.h |
@@ -61,11 +61,13 @@ typedef base::Callback< |
CreateSnapshotFileCallback; |
typedef base::Callback< |
void(base::PlatformFileError result, |
- const base::FilePath& snapshot_file_path)> |
+ const base::FilePath& snapshot_file_path, |
+ const base::Closure& on_close_callback)> |
CreateWritableSnapshotFileCallback; |
typedef base::Callback< |
void(base::PlatformFileError result, |
- base::PlatformFile platform_file)> OpenFileCallback; |
+ base::PlatformFile platform_file, |
+ const base::Closure& on_close_callback)> OpenFileCallback; |
// Runs |file_system_getter| to obtain the instance of FileSystemInstance, |
// and then runs |callback| with it. |
@@ -148,7 +150,7 @@ void CreateSnapshotFile(const base::FilePath& file_path, |
FileSystemInterface* file_system); |
// Creates a writable snapshot for the file at |file_path|. |
-// After writing operation is done, CloseFile is needed to be called. |
+// After writing operation is done, |on_close_callback| must be called. |
void CreateWritableSnapshotFile( |
const base::FilePath& file_path, |
const CreateWritableSnapshotFileCallback& callback, |
@@ -161,12 +163,6 @@ void OpenFile(const base::FilePath& file_path, |
const OpenFileCallback& callback, |
FileSystemInterface* file_system); |
-// Closes the file at |file_path|. |
-// Called from FileSystemProxy::NotifyCloseFile and |
-// FileSystemProxy::CloseWRitableSnapshotFile. |
-void CloseFile(const base::FilePath& file_path, |
- FileSystemInterface* file_system); |
- |
// Changes timestamp of the file at |file_path| to |last_access_time| and |
// |last_modified_time|. Called from FileSystemProxy::TouchFile(). |
void TouchFile(const base::FilePath& file_path, |