| Index: third_party/WebKit/Source/core/html/FormData.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/FormData.cpp b/third_party/WebKit/Source/core/html/FormData.cpp
|
| index aac1c6f2257b75384e9857210cbf13f091e5191b..14aef74777d3d7faf08c8d7d9fa5586838bca13c 100644
|
| --- a/third_party/WebKit/Source/core/html/FormData.cpp
|
| +++ b/third_party/WebKit/Source/core/html/FormData.cpp
|
| @@ -323,11 +323,39 @@ PairIterable<String, FormDataEntryValue>::IterationSource* FormData::startIterat
|
|
|
| // ----------------------------------------------------------------
|
|
|
| +FormData::Entry::Entry(const CString& name, const CString& value)
|
| + : m_name(name)
|
| + , m_value(value)
|
| +{
|
| +}
|
| +
|
| +FormData::Entry::Entry(const CString& name, Blob* blob, const String& filename)
|
| + : m_name(name)
|
| + , m_blob(blob)
|
| + , m_filename(filename)
|
| +{
|
| +}
|
| +
|
| DEFINE_TRACE(FormData::Entry)
|
| {
|
| visitor->trace(m_blob);
|
| }
|
|
|
| +bool FormData::Entry::isString() const
|
| +{
|
| + return !m_blob;
|
| +}
|
| +
|
| +bool FormData::Entry::isFile() const
|
| +{
|
| + return m_blob;
|
| +}
|
| +
|
| +Blob* FormData::Entry::blob() const
|
| +{
|
| + return m_blob.get();
|
| +}
|
| +
|
| File* FormData::Entry::file() const
|
| {
|
| ASSERT(blob());
|
|
|