Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(598)

Unified Diff: Source/core/fileapi/File.h

Issue 18590006: Blob support for IDB [Blink] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: small cleanup Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>);

Powered by Google App Engine
This is Rietveld 408576698