Lines Matching refs:formData
23 #include "FormData.h"
42 inline FormData::FormData()
49 inline FormData::FormData(const FormData& data)
50 : RefCounted<FormData>()
56 // We shouldn't be copying FormData that hasn't already removed its generated files
57 // but just in case, make sure the new FormData is ready to generate its own files.
68 FormData::~FormData()
76 PassRefPtr<FormData> FormData::create()
78 return adoptRef(new FormData);
81 PassRefPtr<FormData> FormData::create(const void* data, size_t size)
83 RefPtr<FormData> result = create();
88 PassRefPtr<FormData> FormData::create(const CString& string)
90 RefPtr<FormData> result = create();
95 PassRefPtr<FormData> FormData::create(const Vector<char>& vector)
97 RefPtr<FormData> result = create();
102 PassRefPtr<FormData> FormData::create(const FormDataList& list, const TextEncoding& encoding)
104 RefPtr<FormData> result = create();
109 PassRefPtr<FormData> FormData::createMultiPart(const FormDataList& list, const TextEncoding& encoding, Document* document)
111 RefPtr<FormData> result = create();
116 PassRefPtr<FormData> FormData::copy() const
118 return adoptRef(new FormData(*this));
121 PassRefPtr<FormData> FormData::deepCopy() const
123 RefPtr<FormData> formData(create());
125 formData->m_alwaysStream = m_alwaysStream;
128 formData->m_elements.reserveInitialCapacity(n);
133 formData->m_elements.append(FormDataElement(e.m_data));
137 formData->m_elements.append(FormDataElement(e.m_filename, e.m_fileStart, e.m_fileLength, e.m_expectedFileModificationTime, e.m_shouldGenerateFile));
139 formData->m_elements.append(FormDataElement(e.m_filename, e.m_shouldGenerateFile));
144 formData->m_elements.append(FormDataElement(e.m_blobURL));
149 return formData.release();
152 void FormData::appendData(const void* data, size_t size)
162 void FormData::appendFile(const String& filename, bool shouldGenerateFile)
172 void FormData::appendFileRange(const String& filename, long long start, long long length, double expectedModificationTime, bool shouldGenerateFile)
177 void FormData::appendBlob(const KURL& blobURL)
183 void FormData::appendKeyValuePairItems(const FormDataList& list, const TextEncoding& encoding, bool isMultiPartForm, Document* document)
274 void FormData::flatten(Vector<char>& data) const
286 String FormData::flattenToString() const
293 void FormData::generateFiles(Document* document)
315 void FormData::removeGeneratedFilesIfNeeded()
426 void FormData::encodeForBackForward(Encoder& encoder) const
442 PassRefPtr<FormData> FormData::decodeForBackForward(Decoder& decoder)
444 RefPtr<FormData> data = FormData::create();