| Index: Source/core/html/DOMFormData.h
|
| diff --git a/Source/core/html/DOMFormData.h b/Source/core/html/DOMFormData.h
|
| index c57a6a0ed2219918a88adbc67946300ccc1d1b66..5411937120fdb2300e326a897b78a36868065be0 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"
|
| @@ -45,10 +46,13 @@ namespace blink {
|
|
|
| class Blob;
|
| class HTMLFormElement;
|
| +class Iterator;
|
|
|
| class DOMFormData : public RefCountedWillBeGarbageCollectedFinalized<DOMFormData>, public FormDataList, public ScriptWrappable {
|
| DEFINE_WRAPPERTYPEINFO();
|
| +
|
| public:
|
| +
|
| static PassRefPtrWillBeRawPtr<DOMFormData> create(HTMLFormElement* form = 0)
|
| {
|
| return adoptRefWillBeNoop(new DOMFormData(form));
|
| @@ -59,8 +63,22 @@ public:
|
| return adoptRefWillBeNoop(new DOMFormData(encoding));
|
| }
|
|
|
| +
|
| + // FormData interface.
|
| void append(const String& name, const String& value);
|
| void append(const String& name, Blob*, const String& filename = String());
|
| + void remove(const String& name);
|
| + 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());
|
| +
|
| + // MapLikeIterable
|
| + Iterator* iterator(ScriptState*, ExceptionState&) { return entries(); }
|
| + Iterator* entries();
|
| + Iterator* keys();
|
| + Iterator* values();
|
|
|
| private:
|
| explicit DOMFormData(const WTF::TextEncoding&);
|
|
|