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

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: 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.cpp
diff --git a/Source/core/fileapi/File.cpp b/Source/core/fileapi/File.cpp
index cb0466492b56ffcb9a478ac4352edc6dd8dc56d9..a2e11d0fa8ceda836c3694113b6a8d8fa69eefb5 100644
--- a/Source/core/fileapi/File.cpp
+++ b/Source/core/fileapi/File.cpp
@@ -113,7 +113,17 @@ File::File(const String& path, const KURL& url, const String& type)
m_name = WebKit::Platform::current()->fileUtilities()->baseName(path);
// FIXME: File object serialization/deserialization does not include
// newer file object data members: m_name and m_relativePath.
- // See SerializedScriptValue.cpp for js and v8.
+ // See SerializedScriptValue.cpp.
+}
+
+File::File(const String& path, const String& name, const KURL& url, const String& type, double lastModified, long long size)
+ : Blob(url, type, -1)
+ , m_path(path)
+ , m_name(name)
+ , m_snapshotSize(size)
+ , m_snapshotModificationTime(lastModified)
+{
+ ScriptWrappable::init(this);
}
File::File(const String& path, const String& name, ContentTypeLookupPolicy policy)

Powered by Google App Engine
This is Rietveld 408576698