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

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

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.cpp
diff --git a/Source/core/fileapi/File.cpp b/Source/core/fileapi/File.cpp
index 684216160e44ee501cdacc56b3981e91449974fa..d0fef2dfd6ce793dbcd60602c5b8c9320f8d759c 100644
--- a/Source/core/fileapi/File.cpp
+++ b/Source/core/fileapi/File.cpp
@@ -114,6 +114,16 @@ File::File(const String& path, const String& name, ContentTypeLookupPolicy polic
ScriptWrappable::init(this);
}
+File::File(const String& path, const String& name, PassRefPtr<BlobDataHandle> blobDataHandle, double lastModified, long long size)
+ : Blob(blobDataHandle)
+ , m_path(path)
+ , m_name(name)
+ , m_snapshotSize(size)
+ , m_snapshotModificationTime(lastModified)
+{
+ ScriptWrappable::init(this);
+}
+
File::File(const String& path, PassRefPtr<BlobDataHandle> blobDataHandle)
: Blob(blobDataHandle)
, m_hasBackingFile(true)

Powered by Google App Engine
This is Rietveld 408576698