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

Unified Diff: third_party/WebKit/Source/core/dom/URLSearchParams.h

Issue 1998563002: Fix URLSearchParams to use the right encoding algorithm (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 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
Index: third_party/WebKit/Source/core/dom/URLSearchParams.h
diff --git a/third_party/WebKit/Source/core/dom/URLSearchParams.h b/third_party/WebKit/Source/core/dom/URLSearchParams.h
index 688e908c28110c7098b6d15d815c4944067bee85..2b855be58c82a978300a33bd57a3cabdc8e1323d 100644
--- a/third_party/WebKit/Source/core/dom/URLSearchParams.h
+++ b/third_party/WebKit/Source/core/dom/URLSearchParams.h
@@ -46,7 +46,7 @@ public:
void setInput(const String&);
// Internal helpers
- PassRefPtr<EncodedFormData> encodeFormData() const;
+ PassRefPtr<EncodedFormData> toEncodedFormData() const;
const Vector<std::pair<String, String>>& params() const { return m_params; }
#if ENABLE(ASSERT)
@@ -63,6 +63,7 @@ private:
void runUpdateSteps();
IterationSource* startIteration(ScriptState*, ExceptionState&) override;
+ void encodeAsFormData(Vector<char>&) const;
Vector<std::pair<String, String>> m_params;

Powered by Google App Engine
This is Rietveld 408576698