OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 13 matching lines...) Expand all Loading... | |
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef DOMFormData_h | 31 #ifndef DOMFormData_h |
32 #define DOMFormData_h | 32 #define DOMFormData_h |
33 | 33 |
34 #include "bindings/core/v8/ScriptState.h" | |
34 #include "core/html/FormDataList.h" | 35 #include "core/html/FormDataList.h" |
35 #include "platform/heap/Handle.h" | 36 #include "platform/heap/Handle.h" |
36 #include "wtf/Forward.h" | 37 #include "wtf/Forward.h" |
37 #include "wtf/PassRefPtr.h" | 38 #include "wtf/PassRefPtr.h" |
38 #include "wtf/RefCounted.h" | 39 #include "wtf/RefCounted.h" |
39 | 40 |
40 namespace WTF{ | 41 namespace WTF{ |
41 class TextEncoding; | 42 class TextEncoding; |
42 } | 43 } |
43 | 44 |
(...skipping 10 matching lines...) Expand all Loading... | |
54 return adoptRefWillBeNoop(new DOMFormData(form)); | 55 return adoptRefWillBeNoop(new DOMFormData(form)); |
55 } | 56 } |
56 | 57 |
57 static PassRefPtrWillBeRawPtr<DOMFormData> create(const WTF::TextEncoding& e ncoding) | 58 static PassRefPtrWillBeRawPtr<DOMFormData> create(const WTF::TextEncoding& e ncoding) |
58 { | 59 { |
59 return adoptRefWillBeNoop(new DOMFormData(encoding)); | 60 return adoptRefWillBeNoop(new DOMFormData(encoding)); |
60 } | 61 } |
61 | 62 |
62 void append(const String& name, const String& value); | 63 void append(const String& name, const String& value); |
63 void append(const String& name, Blob*, const String& filename = String()); | 64 void append(const String& name, Blob*, const String& filename = String()); |
65 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.
| |
66 ScriptValue get(ScriptState*, const String& name); | |
67 Vector<ScriptValue> getAll(ScriptState*, const String& name); | |
68 bool has(const String& name); | |
69 void set(const String& name, const String& value); | |
70 void set(const String& name, Blob*, const String& filename = String()); | |
64 | 71 |
65 private: | 72 private: |
66 explicit DOMFormData(const WTF::TextEncoding&); | 73 explicit DOMFormData(const WTF::TextEncoding&); |
67 explicit DOMFormData(HTMLFormElement*); | 74 explicit DOMFormData(HTMLFormElement*); |
68 }; | 75 }; |
69 | 76 |
70 } // namespace blink | 77 } // namespace blink |
71 | 78 |
72 #endif // DOMFormData_h | 79 #endif // DOMFormData_h |
OLD | NEW |