summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
Diffstat (limited to 'webkit')
-rw-r--r--webkit/chromeos/fileapi/remote_file_system_operation.cc8
-rw-r--r--webkit/chromeos/fileapi/remote_file_system_proxy.h9
2 files changed, 15 insertions, 2 deletions
diff --git a/webkit/chromeos/fileapi/remote_file_system_operation.cc b/webkit/chromeos/fileapi/remote_file_system_operation.cc
index 7f9190b..23f687a 100644
--- a/webkit/chromeos/fileapi/remote_file_system_operation.cc
+++ b/webkit/chromeos/fileapi/remote_file_system_operation.cc
@@ -177,7 +177,13 @@ void RemoteFileSystemOperation::TouchFile(const FileSystemURL& url,
const base::Time& last_access_time,
const base::Time& last_modified_time,
const StatusCallback& callback) {
- NOTIMPLEMENTED();
+ DCHECK(SetPendingOperationType(kOperationTouchFile));
+ remote_proxy_->TouchFile(
+ url,
+ last_access_time,
+ last_modified_time,
+ base::Bind(&RemoteFileSystemOperation::DidFinishFileOperation,
+ base::Owned(this), callback));
}
void RemoteFileSystemOperation::OpenFile(const FileSystemURL& url,
diff --git a/webkit/chromeos/fileapi/remote_file_system_proxy.h b/webkit/chromeos/fileapi/remote_file_system_proxy.h
index 5237e405..e54a266 100644
--- a/webkit/chromeos/fileapi/remote_file_system_proxy.h
+++ b/webkit/chromeos/fileapi/remote_file_system_proxy.h
@@ -103,7 +103,14 @@ class RemoteFileSystemProxyInterface :
// Notifies that a file opened by OpenFile (at |path|) is closed.
virtual void NotifyCloseFile(const FileSystemURL& url) = 0;
- // TODO(zelidrag): More methods to follow as we implement other parts of FSO.
+ // Modifies the timestamp of a given |url| to |last_access_time| and
+ // |last_modified_time|. Note that unlike 'touch' command of Linux, it
+ // does not create a new file.
+ virtual void TouchFile(
+ const fileapi::FileSystemURL& url,
+ const base::Time& last_access_time,
+ const base::Time& last_modified_time,
+ const FileSystemOperation::StatusCallback& callback) = 0;
protected:
friend class base::RefCountedThreadSafe<RemoteFileSystemProxyInterface>;