Index: Source/core/fileapi/File.h |
diff --git a/Source/core/fileapi/File.h b/Source/core/fileapi/File.h |
index 063315daf860af6d877faf3681fccf9e27fcb30b..83579b5bbf9770d85800ebd2138bcf36227e5184 100644 |
--- a/Source/core/fileapi/File.h |
+++ b/Source/core/fileapi/File.h |
@@ -54,6 +54,10 @@ public: |
{ |
return adoptRef(new File(path, srcURL, type)); |
} |
+ static PassRefPtr<File> create(const String& path, const String& name, const KURL& srcURL, const String& type, double lastModified, long long size) |
+ { |
+ return adoptRef(new File(path, name, srcURL, type, lastModified, size)); |
+ } |
static PassRefPtr<File> createWithRelativePath(const String& path, const String& relativePath); |
@@ -86,7 +90,7 @@ public: |
const String& path() const { 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. |
@@ -100,6 +104,7 @@ private: |
// For deserialization. |
File(const String& path, const KURL& srcURL, const String& type); |
+ File(const String& path, const String& name, const KURL&, const String& type, double lastModified, long long size); |
File(const String& path, const String& name, ContentTypeLookupPolicy); |
File(const String& name, const FileMetadata&); |
File(const KURL& fileSystemURL, const FileMetadata&); |