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

Unified Diff: Source/core/loader/BeaconLoader.cpp

Issue 1325893005: Rename DOMFormData to FormData. (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/loader/BeaconLoader.h ('k') | Source/core/loader/FormSubmission.cpp » ('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 0063e0e7877035dd23e6c98439415d178a6cfcfc..615ba43aed632ba21599d52e98984cdf78787750 100644
--- a/Source/core/loader/BeaconLoader.cpp
+++ b/Source/core/loader/BeaconLoader.cpp
@@ -13,7 +13,7 @@
#include "core/fetch/ResourceFetcher.h"
#include "core/fileapi/File.h"
#include "core/frame/LocalFrame.h"
-#include "core/html/DOMFormData.h"
+#include "core/html/FormData.h"
#include "core/inspector/ConsoleMessage.h"
#include "core/loader/MixedContentChecker.h"
#include "platform/exported/WrappedResourceRequest.h"
@@ -37,12 +37,12 @@ protected:
static unsigned long long beaconSize(const String&);
static unsigned long long beaconSize(Blob*);
static unsigned long long beaconSize(PassRefPtr<DOMArrayBufferView>);
- static unsigned long long beaconSize(DOMFormData*);
+ static unsigned long long beaconSize(FormData*);
static bool serialize(const String&, ResourceRequest&, int, int&);
static bool serialize(Blob*, ResourceRequest&, int, int&);
static bool serialize(PassRefPtr<DOMArrayBufferView>, ResourceRequest&, int, int&);
- static bool serialize(DOMFormData*, ResourceRequest&, int, int&);
+ static bool serialize(FormData*, ResourceRequest&, int, int&);
};
template<typename Payload>
@@ -117,7 +117,7 @@ bool BeaconLoader::sendBeacon(LocalFrame* frame, int allowance, const KURL& beac
return Sender::send(frame, allowance, beaconURL, beacon, payloadLength);
}
-bool BeaconLoader::sendBeacon(LocalFrame* frame, int allowance, const KURL& beaconURL, DOMFormData* data, int& payloadLength)
+bool BeaconLoader::sendBeacon(LocalFrame* frame, int allowance, const KURL& beaconURL, FormData* data, int& payloadLength)
{
BeaconData<decltype(data)> beacon(data);
return Sender::send(frame, allowance, beaconURL, beacon, payloadLength);
@@ -216,13 +216,13 @@ bool Beacon::serialize(PassRefPtr<DOMArrayBufferView> data, ResourceRequest& req
return true;
}
-unsigned long long Beacon::beaconSize(DOMFormData* data)
+unsigned long long Beacon::beaconSize(FormData*)
{
- // DOMFormData's size cannot be determined until serialized.
+ // FormData's size cannot be determined until serialized.
return 0;
}
-bool Beacon::serialize(DOMFormData* data, ResourceRequest& request, int allowance, int& payloadLength)
+bool Beacon::serialize(FormData* data, ResourceRequest& request, int allowance, int& payloadLength)
{
ASSERT(data);
RefPtr<EncodedFormData> entityBody = data->createMultiPartFormData();
« no previous file with comments | « Source/core/loader/BeaconLoader.h ('k') | Source/core/loader/FormSubmission.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698