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

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

Issue 1325893005: Rename DOMFormData to FormData. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
« no previous file with comments | « Source/core/html/DOMFormDataTest.cpp ('k') | Source/core/html/FormData.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/FormData.h
diff --git a/Source/core/html/DOMFormData.h b/Source/core/html/FormData.h
similarity index 85%
rename from Source/core/html/DOMFormData.h
rename to Source/core/html/FormData.h
index c2c14b913703a3c7273c246ced20e929d5381dbe..e080043ff1b64ac205599d6871294afc3107595b 100644
--- a/Source/core/html/DOMFormData.h
+++ b/Source/core/html/FormData.h
@@ -28,8 +28,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DOMFormData_h
-#define DOMFormData_h
+#ifndef FormData_h
+#define FormData_h
#include "bindings/core/v8/Iterable.h"
#include "bindings/core/v8/ScriptState.h"
@@ -51,18 +51,18 @@ class HTMLFormElement;
// Typedef from FormData.idl:
typedef FileOrUSVString FormDataEntryValue;
-class CORE_EXPORT DOMFormData final : public FormDataList, public ScriptWrappable, public PairIterable<String, FormDataEntryValue> {
+class CORE_EXPORT FormData final : public FormDataList, public ScriptWrappable, public PairIterable<String, FormDataEntryValue> {
DEFINE_WRAPPERTYPEINFO();
public:
- static DOMFormData* create(HTMLFormElement* form = 0)
+ static FormData* create(HTMLFormElement* form = 0)
{
- return new DOMFormData(form);
+ return new FormData(form);
}
- static DOMFormData* create(const WTF::TextEncoding& encoding)
+ static FormData* create(const WTF::TextEncoding& encoding)
{
- return new DOMFormData(encoding);
+ return new FormData(encoding);
}
// FormData interface.
@@ -81,8 +81,8 @@ public:
String decode(const CString& data) const;
private:
- explicit DOMFormData(const WTF::TextEncoding&);
- explicit DOMFormData(HTMLFormElement*);
+ explicit FormData(const WTF::TextEncoding&);
+ explicit FormData(HTMLFormElement*);
void setEntry(const Item&);
IterationSource* startIteration(ScriptState*, ExceptionState&) override;
@@ -91,4 +91,4 @@ private:
} // namespace blink
-#endif // DOMFormData_h
+#endif // FormData_h
« no previous file with comments | « Source/core/html/DOMFormDataTest.cpp ('k') | Source/core/html/FormData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698