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

Unified Diff: Source/web/WebSearchableFormData.cpp

Issue 1311923004: Rename FormData/FormDataBuilder to EncodedFormData/FormDataEncoder respectively. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update comments 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/web/WebHistoryItem.cpp ('k') | public/platform/WebHTTPBody.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebSearchableFormData.cpp
diff --git a/Source/web/WebSearchableFormData.cpp b/Source/web/WebSearchableFormData.cpp
index f128f0dfb0934924c8d5995794de127de6d6f1a8..a25435a37970a9e6a742755806c78f5ded577f15 100644
--- a/Source/web/WebSearchableFormData.cpp
+++ b/Source/web/WebSearchableFormData.cpp
@@ -40,7 +40,7 @@
#include "core/html/HTMLInputElement.h"
#include "core/html/HTMLOptionElement.h"
#include "core/html/HTMLSelectElement.h"
-#include "platform/network/FormDataBuilder.h"
+#include "platform/network/FormDataEncoder.h"
#include "public/web/WebFormElement.h"
#include "public/web/WebInputElement.h"
#include "wtf/text/TextEncoding.h"
@@ -52,7 +52,7 @@ using namespace HTMLNames;
namespace {
// Gets the encoding for the form.
-// TODO(tkent): Use FormDataBuilder::encodingFromAcceptCharset().
+// TODO(tkent): Use FormDataEncoder::encodingFromAcceptCharset().
void getFormEncoding(const HTMLFormElement& form, WTF::TextEncoding* encoding)
{
String str(form.fastGetAttribute(HTMLNames::accept_charsetAttr));
@@ -217,13 +217,13 @@ bool buildSearchString(const HTMLFormElement& form, Vector<char>* encodedString,
for (const FormDataList::Item& item : formData->items()) {
if (!encodedString->isEmpty())
encodedString->append('&');
- FormDataBuilder::encodeStringAsFormData(*encodedString, item.key());
+ FormDataEncoder::encodeStringAsFormData(*encodedString, item.key());
encodedString->append('=');
if (&control == textElement) {
encodedString->append("{searchTerms}", 13);
isElementFound = true;
} else {
- FormDataBuilder::encodeStringAsFormData(*encodedString, item.data());
+ FormDataEncoder::encodeStringAsFormData(*encodedString, item.data());
}
}
}
@@ -282,7 +282,7 @@ WebSearchableFormData::WebSearchableFormData(const WebFormElement& form, const W
String action(formElement->action());
KURL url(formElement->document().completeURL(action.isNull() ? "" : action));
- RefPtr<FormData> formData = FormData::create(encodedString);
+ RefPtr<EncodedFormData> formData = EncodedFormData::create(encodedString);
url.setQuery(formData->flattenToString());
m_url = url;
m_encoding = String(encoding.name());
« no previous file with comments | « Source/web/WebHistoryItem.cpp ('k') | public/platform/WebHTTPBody.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698