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

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

Issue 564963002: New FormData methods: get, getAll, has, set, delete and iterable (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Stuff new methods behind a flag Created 6 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 9df6bd1839c2f330f87496eb2b5a4f79564576f3..30cf60a8bb5ecf04569ea40f1552145f79abd8f6 100644
--- a/Source/core/fileapi/File.h
+++ b/Source/core/fileapi/File.h
@@ -104,6 +104,8 @@ public:
return adoptRefWillBeNoop(new File(path, name, policy, File::IsNotUserVisible));
}
+ PassRefPtrWillBeRawPtr<File> clone(const String& name = String()) const;
+
virtual unsigned long long size() const OVERRIDE;
virtual PassRefPtrWillBeRawPtr<Blob> slice(long long start, long long end, const String& contentType, ExceptionState&) const OVERRIDE;
virtual void close(ExecutionContext*, ExceptionState&) OVERRIDE;
@@ -142,6 +144,7 @@ private:
File(const String& name, double modificationTime, PassRefPtr<BlobDataHandle>);
File(const String& name, const FileMetadata&, UserVisibility);
File(const KURL& fileSystemURL, const FileMetadata&);
+ File(const File&);
void invalidateSnapshotMetadata() { m_snapshotSize = -1; }

Powered by Google App Engine
This is Rietveld 408576698