Index: Source/core/fileapi/File.h |
diff --git a/Source/core/fileapi/File.h b/Source/core/fileapi/File.h |
index f9c87b4de6414fdb536fa2a4ef979378afa9cf65..9f648c0a1960d8fe6f5474c2b047d57e19452da4 100644 |
--- a/Source/core/fileapi/File.h |
+++ b/Source/core/fileapi/File.h |
@@ -59,6 +59,10 @@ public: |
{ |
return adoptRef(new File(path, blobDataHandle)); |
} |
+ static PassRefPtr<File> create(const String& path, const String& name, PassRefPtr<BlobDataHandle> blobDataHandle, double lastModified, long long size) |
+ { |
+ return adoptRef(new File(path, name, blobDataHandle, lastModified, size)); |
+ } |
static PassRefPtr<File> createWithRelativePath(const String& path, const String& relativePath); |
@@ -92,7 +96,7 @@ public: |
const String& path() const { ASSERT(m_hasBackingFile); return m_path; } |
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. |
@@ -103,6 +107,8 @@ public: |
private: |
File(const String& path, ContentTypeLookupPolicy); |
+ // For deserialization. |
+ File(const String& path, const String& name, PassRefPtr<BlobDataHandle>, double lastModified, long long size); |
File(const String& path, const String& name, ContentTypeLookupPolicy); |
File(const String& path, PassRefPtr<BlobDataHandle>); |
File(const String& name, double modificationTime, PassRefPtr<BlobDataHandle>); |