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

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

Issue 57483002: Implement File constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased against master, updated patch. Created 7 years, 1 month 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/Blob.h
diff --git a/Source/core/fileapi/Blob.h b/Source/core/fileapi/Blob.h
index 58006c82e821b2204db82953d921a5b3379ecb71..35ed92f354848eb1443110e0273a7e7f57e3511a 100644
--- a/Source/core/fileapi/Blob.h
+++ b/Source/core/fileapi/Blob.h
@@ -60,7 +60,10 @@ public:
String uuid() const { return m_blobDataHandle->uuid(); }
String type() const { return m_blobDataHandle->type(); }
virtual unsigned long long size() const { return m_blobDataHandle->size(); }
+ // True for all File instances, including the user-built ones.
virtual bool isFile() const { return false; }
+ // Only true for File instances sourced from the filesystem.
kinuko 2013/11/14 05:41:06 'Only true for File instances that is backed by a
pwnall-personal 2013/11/14 14:31:19 Done.
+ virtual bool hasBackingFile() const { return false; }
PassRefPtr<BlobDataHandle> blobDataHandle() const { return m_blobDataHandle; }
PassRefPtr<Blob> slice(long long start = 0, long long end = std::numeric_limits<long long>::max(), const String& contentType = String()) const;

Powered by Google App Engine
This is Rietveld 408576698