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

Side by Side Diff: third_party/WebKit/Source/core/html/FormData.h

Issue 2616923002: Replace [CallWith=ExecutionContext] with [CallWith=ScriptState] (Closed)
Patch Set: Fix errors Created 3 years, 11 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 unified diff | Download patch
OLDNEW
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 15 matching lines...) Expand all
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 FormData_h 31 #ifndef FormData_h
32 #define FormData_h 32 #define FormData_h
33 33
34 #include "bindings/core/v8/FileOrUSVString.h" 34 #include "bindings/core/v8/FileOrUSVString.h"
35 #include "bindings/core/v8/Iterable.h" 35 #include "bindings/core/v8/Iterable.h"
36 #include "bindings/core/v8/ScriptState.h"
37 #include "core/CoreExport.h" 36 #include "core/CoreExport.h"
38 #include "platform/heap/Handle.h" 37 #include "platform/heap/Handle.h"
39 #include "platform/network/EncodedFormData.h" 38 #include "platform/network/EncodedFormData.h"
40 #include "wtf/Forward.h" 39 #include "wtf/Forward.h"
41 #include "wtf/text/TextEncoding.h" 40 #include "wtf/text/TextEncoding.h"
42 41
43 namespace blink { 42 namespace blink {
44 43
45 class Blob; 44 class Blob;
46 class HTMLFormElement; 45 class HTMLFormElement;
46 class ScriptState;
47 47
48 // Typedef from FormData.idl: 48 // Typedef from FormData.idl:
49 typedef FileOrUSVString FormDataEntryValue; 49 typedef FileOrUSVString FormDataEntryValue;
50 50
51 class CORE_EXPORT FormData final 51 class CORE_EXPORT FormData final
52 : public GarbageCollected<FormData>, 52 : public GarbageCollected<FormData>,
53 public ScriptWrappable, 53 public ScriptWrappable,
54 public PairIterable<String, FormDataEntryValue> { 54 public PairIterable<String, FormDataEntryValue> {
55 DEFINE_WRAPPERTYPEINFO(); 55 DEFINE_WRAPPERTYPEINFO();
56 56
57 public: 57 public:
58 static FormData* create(HTMLFormElement* form = 0) { 58 static FormData* create(HTMLFormElement* form = 0) {
59 return new FormData(form); 59 return new FormData(form);
60 } 60 }
61 61
62 static FormData* create(const WTF::TextEncoding& encoding) { 62 static FormData* create(const WTF::TextEncoding& encoding) {
63 return new FormData(encoding); 63 return new FormData(encoding);
64 } 64 }
65 DECLARE_TRACE(); 65 DECLARE_TRACE();
66 66
67 // FormData IDL interface. 67 // FormData IDL interface.
68 void append(const String& name, const String& value); 68 void append(const String& name, const String& value);
69 void append(ExecutionContext*, 69 void append(ScriptState*,
70 const String& name, 70 const String& name,
71 Blob*, 71 Blob*,
72 const String& filename = String()); 72 const String& filename = String());
73 void deleteEntry(const String& name); 73 void deleteEntry(const String& name);
74 void get(const String& name, FormDataEntryValue& result); 74 void get(const String& name, FormDataEntryValue& result);
75 HeapVector<FormDataEntryValue> getAll(const String& name); 75 HeapVector<FormDataEntryValue> getAll(const String& name);
76 bool has(const String& name); 76 bool has(const String& name);
77 void set(const String& name, const String& value); 77 void set(const String& name, const String& value);
78 void set(const String& name, Blob*, const String& filename = String()); 78 void set(const String& name, Blob*, const String& filename = String());
79 79
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 private: 125 private:
126 const CString m_name; 126 const CString m_name;
127 const CString m_value; 127 const CString m_value;
128 const Member<Blob> m_blob; 128 const Member<Blob> m_blob;
129 const String m_filename; 129 const String m_filename;
130 }; 130 };
131 131
132 } // namespace blink 132 } // namespace blink
133 133
134 #endif // FormData_h 134 #endif // FormData_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/History.idl ('k') | third_party/WebKit/Source/core/html/FormData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698