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

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: Merge fixes [builds, untested] Created 7 years, 3 months 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 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&);

Powered by Google App Engine
This is Rietveld 408576698