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

Unified Diff: Source/core/loader/BeaconLoader.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/core/inspector/NetworkResourcesData.cpp ('k') | Source/core/loader/FormSubmission.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/BeaconLoader.cpp
diff --git a/Source/core/loader/BeaconLoader.cpp b/Source/core/loader/BeaconLoader.cpp
index 83e1a1dc868cb7c59566c0377f10eb54d0675731..0063e0e7877035dd23e6c98439415d178a6cfcfc 100644
--- a/Source/core/loader/BeaconLoader.cpp
+++ b/Source/core/loader/BeaconLoader.cpp
@@ -18,7 +18,7 @@
#include "core/loader/MixedContentChecker.h"
#include "platform/exported/WrappedResourceRequest.h"
#include "platform/exported/WrappedResourceResponse.h"
-#include "platform/network/FormData.h"
+#include "platform/network/EncodedFormData.h"
#include "platform/network/ParsedContentType.h"
#include "platform/network/ResourceRequest.h"
#include "public/platform/WebURLRequest.h"
@@ -169,7 +169,7 @@ unsigned long long Beacon::beaconSize(const String& data)
bool Beacon::serialize(const String& data, ResourceRequest& request, int, int&)
{
- RefPtr<FormData> entityBody = FormData::create(data.utf8());
+ RefPtr<EncodedFormData> entityBody = EncodedFormData::create(data.utf8());
request.setHTTPBody(entityBody);
request.setHTTPContentType("text/plain;charset=UTF-8");
return true;
@@ -183,7 +183,7 @@ unsigned long long Beacon::beaconSize(Blob* data)
bool Beacon::serialize(Blob* data, ResourceRequest& request, int, int&)
{
ASSERT(data);
- RefPtr<FormData> entityBody = FormData::create();
+ RefPtr<EncodedFormData> entityBody = EncodedFormData::create();
if (data->hasBackingFile())
entityBody->appendFile(toFile(data)->path());
else
@@ -206,7 +206,7 @@ unsigned long long Beacon::beaconSize(PassRefPtr<DOMArrayBufferView> data)
bool Beacon::serialize(PassRefPtr<DOMArrayBufferView> data, ResourceRequest& request, int, int&)
{
ASSERT(data);
- RefPtr<FormData> entityBody = FormData::create(data->baseAddress(), data->byteLength());
+ RefPtr<EncodedFormData> entityBody = EncodedFormData::create(data->baseAddress(), data->byteLength());
request.setHTTPBody(entityBody.release());
// FIXME: a reasonable choice, but not in the spec; should it give a default?
@@ -225,7 +225,7 @@ unsigned long long Beacon::beaconSize(DOMFormData* data)
bool Beacon::serialize(DOMFormData* data, ResourceRequest& request, int allowance, int& payloadLength)
{
ASSERT(data);
- RefPtr<FormData> entityBody = data->createMultiPartFormData();
+ RefPtr<EncodedFormData> entityBody = data->createMultiPartFormData();
unsigned long long entitySize = entityBody->sizeInBytes();
if (allowance > 0 && static_cast<unsigned long long>(allowance) < entitySize)
return false;
« no previous file with comments | « Source/core/inspector/NetworkResourcesData.cpp ('k') | Source/core/loader/FormSubmission.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698