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

Unified Diff: Source/core/html/DOMFormData.h

Issue 564963002: New FormData methods: get, getAll, has, set, delete and iterable (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Implement getAll(), fix get() with no matches 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/html/DOMFormData.h
diff --git a/Source/core/html/DOMFormData.h b/Source/core/html/DOMFormData.h
index c57a6a0ed2219918a88adbc67946300ccc1d1b66..f7a27a4daae53959cf4d329db97d3ac2c88ec7a3 100644
--- a/Source/core/html/DOMFormData.h
+++ b/Source/core/html/DOMFormData.h
@@ -31,6 +31,7 @@
#ifndef DOMFormData_h
#define DOMFormData_h
+#include "bindings/core/v8/ScriptState.h"
#include "core/html/FormDataList.h"
#include "platform/heap/Handle.h"
#include "wtf/Forward.h"
@@ -61,6 +62,12 @@ public:
void append(const String& name, const String& value);
void append(const String& name, Blob*, const String& filename = String());
+ void deleteFunction(const String& name);
sof 2014/09/12 15:21:26 nit: some precedence for using ImplementedAs=remov
jsbell 2014/09/12 16:30:09 Done.
+ ScriptValue get(ScriptState*, const String& name);
+ Vector<ScriptValue> getAll(ScriptState*, const String& name);
+ bool has(const String& name);
+ void set(const String& name, const String& value);
+ void set(const String& name, Blob*, const String& filename = String());
private:
explicit DOMFormData(const WTF::TextEncoding&);

Powered by Google App Engine
This is Rietveld 408576698