summaryrefslogtreecommitdiffstats
path: root/webkit/fileapi/file_system_operation.h
diff options
context:
space:
mode:
authordumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-27 21:22:01 +0000
committerdumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-27 21:22:01 +0000
commited7ae173fbca0de5cb95c990fed727ea15172cd4 (patch)
treee94ae0632eec0d649dad8fa1953cf0932c35cbda /webkit/fileapi/file_system_operation.h
parent6783d72a34e5d25655d5c9d054f2700f3d2488ff (diff)
downloadchromium_src-ed7ae173fbca0de5cb95c990fed727ea15172cd4.zip
chromium_src-ed7ae173fbca0de5cb95c990fed727ea15172cd4.tar.gz
chromium_src-ed7ae173fbca0de5cb95c990fed727ea15172cd4.tar.bz2
Adding a TouchFile() operation.
BUG=none TEST=none Review URL: http://codereview.chromium.org/3417018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60710 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/fileapi/file_system_operation.h')
-rw-r--r--webkit/fileapi/file_system_operation.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/webkit/fileapi/file_system_operation.h b/webkit/fileapi/file_system_operation.h
index e1058a3..1107303 100644
--- a/webkit/fileapi/file_system_operation.h
+++ b/webkit/fileapi/file_system_operation.h
@@ -15,6 +15,10 @@
#include "base/scoped_callback_factory.h"
#include "base/scoped_ptr.h"
+namespace base {
+class Time;
+}
+
class GURL;
namespace fileapi {
@@ -62,6 +66,10 @@ class FileSystemOperation {
void Truncate(const FilePath& path, int64 length);
+ void TouchFile(const FilePath& path,
+ const base::Time& last_access_time,
+ const base::Time& last_modified_time);
+
// Used to attempt to cancel the current operation. This currently does
// nothing for any operation other than Write().
void Cancel();
@@ -100,6 +108,8 @@ class FileSystemOperation {
int64 bytes,
bool complete);
+ void DidTouchFile(base::PlatformFileError rv);
+
scoped_ptr<FileSystemCallbackDispatcher> dispatcher_;
base::ScopedCallbackFactory<FileSystemOperation> callback_factory_;