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

Unified Diff: Source/core/html/FormDataList.cpp

Issue 1320463010: Move FormDataList::setEntry to DOMFormData. (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/FormDataList.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/FormDataList.cpp
diff --git a/Source/core/html/FormDataList.cpp b/Source/core/html/FormDataList.cpp
index 9c33722b4a8bc395786a5b5087c7d756fbd9ee74..1981dcf837421a938a7b5f14fd5845c14a3e9141 100644
--- a/Source/core/html/FormDataList.cpp
+++ b/Source/core/html/FormDataList.cpp
@@ -121,37 +121,6 @@ bool FormDataList::hasEntry(const String& key) const
return false;
}
-void FormDataList::setBlob(const String& key, Blob* blob, const String& filename)
-{
- setEntry(Item(encodeAndNormalize(key), blob, filename));
-}
-
-void FormDataList::setData(const String& key, const String& value)
-{
- setEntry(Item(encodeAndNormalize(key), encodeAndNormalize(value)));
-}
-
-void FormDataList::setEntry(const Item& item)
-{
- const CString keyData = item.key();
- bool found = false;
- size_t i = 0;
- while (i < m_items.size()) {
- if (m_items[i].key() != keyData) {
- ++i;
- } else if (found) {
- m_items.remove(i);
- } else {
- found = true;
- m_items[i] = item;
- ++i;
- }
- }
- if (!found)
- m_items.append(item);
- return;
-}
-
PassRefPtr<FormData> FormDataList::createFormData(FormData::EncodingType encodingType)
{
RefPtr<FormData> result = FormData::create();
« no previous file with comments | « Source/core/html/FormDataList.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698