summaryrefslogtreecommitdiffstats
path: root/webkit/fileapi/file_system_mount_point_provider.h
diff options
context:
space:
mode:
authorhashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-15 13:28:06 +0000
committerhashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-15 13:28:06 +0000
commita10578310f22a457c56b761f6f420cdee20d6688 (patch)
tree85369385458b2ead7d1c1cac25ea9ce376c50625 /webkit/fileapi/file_system_mount_point_provider.h
parent3704abce04bb84f24dbb2b8a2c25b28f0f3c2357 (diff)
downloadchromium_src-a10578310f22a457c56b761f6f420cdee20d6688.zip
chromium_src-a10578310f22a457c56b761f6f420cdee20d6688.tar.gz
chromium_src-a10578310f22a457c56b761f6f420cdee20d6688.tar.bz2
fileapi: Add modification time check for FileSystemFileStreamReader
The check is added since BlobData has expected_modification_time field. Add tests (mostly copied from LocalFileStreamReaderTest). BUG=141835 TEST=content_unittests --gtest_filter="FileSystemFileStreamReaderTest.*" TBR=jam@chromium.org Review URL: https://chromiumcodereview.appspot.com/11098067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161853 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/fileapi/file_system_mount_point_provider.h')
-rw-r--r--webkit/fileapi/file_system_mount_point_provider.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/webkit/fileapi/file_system_mount_point_provider.h b/webkit/fileapi/file_system_mount_point_provider.h
index c36a602..876ce40 100644
--- a/webkit/fileapi/file_system_mount_point_provider.h
+++ b/webkit/fileapi/file_system_mount_point_provider.h
@@ -87,13 +87,18 @@ class FILEAPI_EXPORT FileSystemMountPointProvider {
base::PlatformFileError* error_code) const = 0;
// Creates a new file stream reader for a given filesystem URL |url| with an
- // offset |offset|.
+ // offset |offset|. |expected_modification_time| specifies the expected last
+ // modification if the value is non-null, the reader will check the underlying
+ // file's actual modification time to see if the file has been modified, and
+ // if it does any succeeding read operations should fail with
+ // ERR_UPLOAD_FILE_CHANGED error.
// The returned object must be owned and managed by the caller.
// This method itself does *not* check if the given path exists and is a
// regular file.
virtual webkit_blob::FileStreamReader* CreateFileStreamReader(
const FileSystemURL& url,
int64 offset,
+ const base::Time& expected_modification_time,
FileSystemContext* context) const = 0;
// Creates a new file stream writer for a given filesystem URL |url| with an