| Index: Source/core/fileapi/File.cpp
|
| diff --git a/Source/core/fileapi/File.cpp b/Source/core/fileapi/File.cpp
|
| index c578ada5303bb5fabb39259a3c9b859bcfd64fa6..a5b020bc32a2b43964c663bcb19f15fc464f0b54 100644
|
| --- a/Source/core/fileapi/File.cpp
|
| +++ b/Source/core/fileapi/File.cpp
|
| @@ -94,6 +94,7 @@ PassRefPtr<File> File::createWithRelativePath(const String& path, const String&
|
|
|
| File::File(const String& path, ContentTypeLookupPolicy policy)
|
| : Blob(BlobDataHandle::create(createBlobDataForFile(path, policy), -1))
|
| + , m_isOnFilesystem(true)
|
| , m_path(path)
|
| , m_name(WebKit::Platform::current()->fileUtilities()->baseName(path))
|
| , m_snapshotSize(-1)
|
| @@ -104,6 +105,7 @@ File::File(const String& path, ContentTypeLookupPolicy policy)
|
|
|
| File::File(const String& path, const String& name, ContentTypeLookupPolicy policy)
|
| : Blob(BlobDataHandle::create(createBlobDataForFileWithName(path, name, policy), -1))
|
| + , m_isOnFilesystem(true)
|
| , m_path(path)
|
| , m_name(name)
|
| , m_snapshotSize(-1)
|
| @@ -114,6 +116,7 @@ File::File(const String& path, const String& name, ContentTypeLookupPolicy polic
|
|
|
| File::File(const String& path, PassRefPtr<BlobDataHandle> blobDataHandle)
|
| : Blob(blobDataHandle)
|
| + , m_isOnFilesystem(true)
|
| , m_path(path)
|
| , m_name(WebKit::Platform::current()->fileUtilities()->baseName(path))
|
| , m_snapshotSize(-1)
|
| @@ -125,8 +128,19 @@ File::File(const String& path, PassRefPtr<BlobDataHandle> blobDataHandle)
|
| // See SerializedScriptValue.cpp.
|
| }
|
|
|
| +File::File(const String& name, double modificationTime, PassRefPtr<BlobDataHandle> blobDataHandle)
|
| + : Blob(blobDataHandle)
|
| + , m_isOnFilesystem(false)
|
| + , m_name(name)
|
| + , m_snapshotSize(Blob::size())
|
| + , m_snapshotModificationTime(modificationTime)
|
| +{
|
| + ScriptWrappable::init(this);
|
| +}
|
| +
|
| File::File(const String& name, const FileMetadata& metadata)
|
| : Blob(BlobDataHandle::create(createBlobDataForFileWithMetadata(name, metadata), metadata.length))
|
| + , m_isOnFilesystem(true)
|
| , m_path(metadata.platformPath)
|
| , m_name(name)
|
| , m_snapshotSize(metadata.length)
|
| @@ -137,6 +151,7 @@ File::File(const String& name, const FileMetadata& metadata)
|
|
|
| File::File(const KURL& fileSystemURL, const FileMetadata& metadata)
|
| : Blob(BlobDataHandle::create(createBlobDataForFileSystemURL(fileSystemURL, metadata), metadata.length))
|
| + , m_isOnFilesystem(true)
|
| , m_fileSystemURL(fileSystemURL)
|
| , m_snapshotSize(metadata.length)
|
| , m_snapshotModificationTime(metadata.modificationTime)
|
|
|