Index: Source/core/fileapi/File.h |
diff --git a/Source/core/fileapi/File.h b/Source/core/fileapi/File.h |
index 6c5dd1a2c2acbdff87878de5491b3aae451a56e1..1b79ba88b9c077250e2b3f3e254f140cc17feead 100644 |
--- a/Source/core/fileapi/File.h |
+++ b/Source/core/fileapi/File.h |
@@ -32,6 +32,7 @@ |
namespace WebCore { |
+class ExecutionContext; |
struct FileMetadata; |
class KURL; |
@@ -87,6 +88,7 @@ public: |
virtual unsigned long long size() const OVERRIDE; |
virtual PassRefPtr<Blob> slice(long long start = 0, long long end = std::numeric_limits<long long>::max(), const String& contentType = String()) const OVERRIDE; |
+ virtual void close(ExecutionContext*) OVERRIDE; |
virtual bool isFile() const OVERRIDE { return true; } |
virtual bool hasBackingFile() const OVERRIDE { return m_hasBackingFile; } |
@@ -94,9 +96,9 @@ public: |
virtual void appendTo(BlobData&) const OVERRIDE; |
const String& path() const { ASSERT(m_hasBackingFile); return m_path; } |
michaeln
2014/02/18 18:59:54
Ditto landmind.
sof
2014/02/19 11:47:39
I checked the call sites & they do check backing f
|
- const String& name() const { return m_name; } |
+ const String name() const { return m_name; } |
- // This returns the current date and time if the file's last modifiecation date is not known (per spec: http://www.w3.org/TR/FileAPI/#dfn-lastModifiedDate). |
+ // This returns the current date and time if the file's last modification date is not known (per spec: http://www.w3.org/TR/FileAPI/#dfn-lastModifiedDate). |
double lastModifiedDate() const; |
// Returns the relative path of this file in the context of a directory selection. |
@@ -116,6 +118,8 @@ private: |
File(const String& name, const FileMetadata&); |
File(const KURL& fileSystemURL, const FileMetadata&); |
+ void invalidateSnapshotMetadata() { m_snapshotSize = -1; } |
+ |
bool m_hasBackingFile; |
String m_path; |
String m_name; |
@@ -124,7 +128,7 @@ private: |
// If m_snapshotSize is negative (initialized to -1 by default), the snapshot metadata is invalid and we retrieve the latest metadata synchronously in size(), lastModifiedTime() and slice(). |
// Otherwise, the snapshot metadata are used directly in those methods. |
- const long long m_snapshotSize; |
+ long long m_snapshotSize; |
const double m_snapshotModificationTime; |
String m_relativePath; |