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

Unified Diff: Source/modules/fetch/RequestInit.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/modules/fetch/FetchFormDataConsumerHandleTest.cpp ('k') | Source/modules/fetch/Response.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/fetch/RequestInit.cpp
diff --git a/Source/modules/fetch/RequestInit.cpp b/Source/modules/fetch/RequestInit.cpp
index 3b8690d3ef17d62743a2d3772326e4977fafb232..edb44613aaf794da9d3961a565a2b5ce3db32bb8 100644
--- a/Source/modules/fetch/RequestInit.cpp
+++ b/Source/modules/fetch/RequestInit.cpp
@@ -17,7 +17,7 @@
#include "modules/fetch/FetchFormDataConsumerHandle.h"
#include "modules/fetch/Headers.h"
#include "platform/blob/BlobData.h"
-#include "platform/network/FormData.h"
+#include "platform/network/EncodedFormData.h"
namespace blink {
@@ -54,9 +54,9 @@ RequestInit::RequestInit(ExecutionContext* context, const Dictionary& options, E
DOMFormData* domFormData = V8FormData::toImpl(v8::Local<v8::Object>::Cast(v8Body));
opaque = domFormData->opaque();
- RefPtr<FormData> formData = domFormData->createMultiPartFormData();
+ RefPtr<EncodedFormData> formData = domFormData->createMultiPartFormData();
// Here we handle formData->boundary() as a C-style string. See
- // FormDataBuilder::generateUniqueBoundaryString.
+ // FormDataEncoder::generateUniqueBoundaryString.
contentType = AtomicString("multipart/form-data; boundary=", AtomicString::ConstructFromLiteral) + formData->boundary().data();
body = FetchFormDataConsumerHandle::create(context, formData.release());
} else if (v8Body->IsString()) {
« no previous file with comments | « Source/modules/fetch/FetchFormDataConsumerHandleTest.cpp ('k') | Source/modules/fetch/Response.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698