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

Unified Diff: Source/core/html/parser/XSSAuditorDelegate.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/html/parser/XSSAuditorDelegate.h ('k') | Source/core/inspector/AsyncCallTracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/parser/XSSAuditorDelegate.cpp
diff --git a/Source/core/html/parser/XSSAuditorDelegate.cpp b/Source/core/html/parser/XSSAuditorDelegate.cpp
index 9a5b3345f09b28dedeb4eae0b7fe504499c886cb..0b5427b67788ef4aca411e3a9a1a122e6a5c4cc0 100644
--- a/Source/core/html/parser/XSSAuditorDelegate.cpp
+++ b/Source/core/html/parser/XSSAuditorDelegate.cpp
@@ -35,7 +35,7 @@
#include "core/loader/NavigationScheduler.h"
#include "core/loader/PingLoader.h"
#include "platform/JSONValues.h"
-#include "platform/network/FormData.h"
+#include "platform/network/EncodedFormData.h"
#include "platform/weborigin/SecurityOrigin.h"
#include "wtf/text/StringBuilder.h"
@@ -80,14 +80,14 @@ DEFINE_TRACE(XSSAuditorDelegate)
visitor->trace(m_document);
}
-PassRefPtr<FormData> XSSAuditorDelegate::generateViolationReport(const XSSInfo& xssInfo)
+PassRefPtr<EncodedFormData> XSSAuditorDelegate::generateViolationReport(const XSSInfo& xssInfo)
{
ASSERT(isMainThread());
FrameLoader& frameLoader = m_document->frame()->loader();
String httpBody;
if (frameLoader.documentLoader()) {
- if (FormData* formData = frameLoader.documentLoader()->originalRequest().httpBody())
+ if (EncodedFormData* formData = frameLoader.documentLoader()->originalRequest().httpBody())
httpBody = formData->flattenToString();
}
@@ -98,7 +98,7 @@ PassRefPtr<FormData> XSSAuditorDelegate::generateViolationReport(const XSSInfo&
RefPtr<JSONObject> reportObject = JSONObject::create();
reportObject->setObject("xss-report", reportDetails.release());
- return FormData::create(reportObject->toJSONString().utf8().data());
+ return EncodedFormData::create(reportObject->toJSONString().utf8().data());
}
void XSSAuditorDelegate::didBlockScript(const XSSInfo& xssInfo)
« no previous file with comments | « Source/core/html/parser/XSSAuditorDelegate.h ('k') | Source/core/inspector/AsyncCallTracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698