Index: Source/core/fileapi/File.cpp |
diff --git a/Source/core/fileapi/File.cpp b/Source/core/fileapi/File.cpp |
index c578ada5303bb5fabb39259a3c9b859bcfd64fa6..8a28b80be03ef01562e80d5fa296ba349e294c87 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,20 @@ 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_path() |
Inactive
2013/11/04 14:13:11
Not needed
pwnall-personal
2013/11/04 17:16:25
Done.
|
+ , 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 +152,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) |