| Index: third_party/WebKit/Source/core/html/FormData.h
|
| diff --git a/third_party/WebKit/Source/core/html/FormData.h b/third_party/WebKit/Source/core/html/FormData.h
|
| index 0142183f06efeb75be06ddee333b941096f75674..503c5d7095c9fdd834c37933cdd666a95c20f02e 100644
|
| --- a/third_party/WebKit/Source/core/html/FormData.h
|
| +++ b/third_party/WebKit/Source/core/html/FormData.h
|
| @@ -101,17 +101,17 @@ private:
|
| // Represents entry, which is a pair of a name and a value.
|
| // https://xhr.spec.whatwg.org/#concept-formdata-entry
|
| // Entry objects are immutable.
|
| -class CORE_EXPORT FormData::Entry : public GarbageCollectedFinalized<FormData::Entry> {
|
| +class FormData::Entry : public GarbageCollectedFinalized<FormData::Entry> {
|
| public:
|
| - Entry(const CString&, const CString&);
|
| - Entry(const CString&, Blob*, const String&);
|
| + Entry(const CString& name, const CString& value) : m_name(name), m_value(value) { }
|
| + Entry(const CString& name, Blob* blob, const String& filename) : m_name(name), m_blob(blob), m_filename(filename) { }
|
| DECLARE_TRACE();
|
|
|
| - bool isString() const;
|
| - bool isFile() const;
|
| + bool isString() const { return !m_blob; }
|
| + bool isFile() const { return m_blob; }
|
| const CString& name() const { return m_name; }
|
| const CString& value() const { return m_value; }
|
| - Blob* blob() const;
|
| + Blob* blob() const { return m_blob.get(); }
|
| File* file() const;
|
| const String& filename() const { return m_filename; }
|
|
|
|
|