Index: Source/core/fileapi/File.h |
diff --git a/Source/core/fileapi/File.h b/Source/core/fileapi/File.h |
index c6d8db4b4f420d2c124fa3c414076d924af7ab08..b08da75d2f4a35a9b2a8f2780154a2e6a0bf5282 100644 |
--- a/Source/core/fileapi/File.h |
+++ b/Source/core/fileapi/File.h |
@@ -49,6 +49,11 @@ public: |
return adoptRef(new File(path, policy)); |
} |
+ static PassRefPtr<File> create(const String& name, double modificationTime, PassRefPtr<BlobDataHandle> blobDataHandle) |
+ { |
+ return adoptRef(new File(name, modificationTime, blobDataHandle)); |
+ } |
+ |
// For deserialization. |
static PassRefPtr<File> create(const String& path, PassRefPtr<BlobDataHandle> blobDataHandle) |
{ |
@@ -82,6 +87,7 @@ public: |
virtual unsigned long long size() const; |
virtual bool isFile() const { return true; } |
+ virtual bool isOnFilesystem() const { return m_isOnFilesystem; } |
kinuko
2013/11/05 11:20:29
nit: the term FileSystem is often used to note Fil
pwnall-personal
2013/11/05 11:44:35
I agree that the name isn't very good, and will ch
|
const String& path() const { return m_path; } |
const String& name() const { return m_name; } |
@@ -99,12 +105,14 @@ private: |
File(const String& path, ContentTypeLookupPolicy); |
File(const String& path, const String& name, ContentTypeLookupPolicy); |
File(const String& path, PassRefPtr<BlobDataHandle>); |
+ File(const String& name, double modificationTime, PassRefPtr<BlobDataHandle>); |
File(const String& name, const FileMetadata&); |
File(const KURL& fileSystemURL, const FileMetadata&); |
// Returns true if this has a valid snapshot metadata (i.e. m_snapshotSize >= 0). |
bool hasValidSnapshotMetadata() const { return m_snapshotSize >= 0; } |
+ bool m_isOnFilesystem; |
String m_path; |
String m_name; |