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

Unified Diff: Source/core/html/FormDataList.h

Issue 27537012: Break core/platform/network dependency on core (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 2 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/DOMFormData.h ('k') | Source/core/html/FormDataList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/FormDataList.h
diff --git a/Source/core/platform/network/FormDataList.h b/Source/core/html/FormDataList.h
similarity index 86%
rename from Source/core/platform/network/FormDataList.h
rename to Source/core/html/FormDataList.h
index 0a6e3a482f8ab4e3c5c3c41227efe8c74c7426c9..e644076e58214d8dc3d9471250a8952998c4912f 100644
--- a/Source/core/platform/network/FormDataList.h
+++ b/Source/core/html/FormDataList.h
@@ -22,6 +22,7 @@
#define FormDataList_h
#include "core/fileapi/Blob.h"
+#include "core/platform/network/FormData.h"
#include "wtf/Forward.h"
#include "wtf/text/CString.h"
#include "wtf/text/TextEncoding.h"
@@ -72,7 +73,12 @@ public:
const Vector<Item>& items() const { return m_items; }
const WTF::TextEncoding& encoding() const { return m_encoding; }
+ PassRefPtr<FormData> createFormData(const WTF::TextEncoding&, FormData::EncodingType = FormData::FormURLEncoded);
+ PassRefPtr<FormData> createMultiPartFormData(const WTF::TextEncoding&);
+
private:
+ void appendKeyValuePairItemsTo(FormData*, const WTF::TextEncoding&, bool isMultiPartForm, FormData::EncodingType = FormData::FormURLEncoded);
+
void appendString(const CString&);
void appendString(const String&);
void appendBlob(PassRefPtr<Blob>, const String& filename);
« no previous file with comments | « Source/core/html/DOMFormData.h ('k') | Source/core/html/FormDataList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698