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

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

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: webkit/chromeos/fileapi/remote_file_system_operation.cc
diff --git a/webkit/chromeos/fileapi/remote_file_system_operation.cc b/webkit/chromeos/fileapi/remote_file_system_operation.cc
index 29826078f070859b70420e67a4315ca4f7f672e8..3838921e7cda29de3c51d5780d401c4d19a72679 100644
--- a/webkit/chromeos/fileapi/remote_file_system_operation.cc
+++ b/webkit/chromeos/fileapi/remote_file_system_operation.cc
@@ -151,16 +151,6 @@ void RemoteFileSystemOperation::OpenFile(const GURL& path,
int file_flags,
base::ProcessHandle peer_handle,
const OpenFileCallback& callback) {
- // TODO(zelidrag): Implement file write operations.
- if ((file_flags & base::PLATFORM_FILE_CREATE) ||
- (file_flags & base::PLATFORM_FILE_WRITE) ||
- (file_flags & base::PLATFORM_FILE_EXCLUSIVE_WRITE) ||
- (file_flags & base::PLATFORM_FILE_CREATE_ALWAYS) ||
- (file_flags & base::PLATFORM_FILE_OPEN_TRUNCATED) ||
- (file_flags & base::PLATFORM_FILE_DELETE_ON_CLOSE)) {
- NOTIMPLEMENTED() << "File write operations not supported " << path.spec();
- return;
- }
DCHECK(SetPendingOperationType(kOperationOpenFile));
remote_proxy_->OpenFile(
path,
@@ -170,6 +160,12 @@ void RemoteFileSystemOperation::OpenFile(const GURL& path,
base::Owned(this), callback));
}
+void RemoteFileSystemOperation::NotifyFileClosed(
+ const GURL& path, const StatusCallback& callback) {
+ DCHECK(SetPendingOperationType(kOperationFileClosed));
+ remote_proxy_->NotifyFileClosed(path, callback);
+}
+
fileapi::FileSystemOperation*
RemoteFileSystemOperation::AsFileSystemOperation() {
NOTIMPLEMENTED();

Powered by Google App Engine
This is Rietveld 408576698