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

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

Issue 1334513002: Fold FormDataList::getEntry(index) into DOMFormData. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/DOMFormData.cpp ('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/html/FormDataList.h b/Source/core/html/FormDataList.h
index b429ad3d1dbfcf7d3db48fc9579e8ede2d85c6d9..15e1aef21d0e625ab86d723daacb57a434445890 100644
--- a/Source/core/html/FormDataList.h
+++ b/Source/core/html/FormDataList.h
@@ -69,9 +69,12 @@ public:
Item(const CString& key, const CString& data) : m_key(key), m_data(data) { }
Item(const CString& key, Blob* blob, const String& filename) : m_key(key), m_blob(blob), m_filename(filename) { }
+ bool isString() const { return !m_blob; }
+ bool isFile() const { return m_blob; }
const CString& key() const { return m_key; }
const WTF::CString& data() const { return m_data; }
Blob* blob() const { return m_blob.get(); }
+ File* file() const;
const String& filename() const { return m_filename; }
DECLARE_TRACE();
@@ -103,7 +106,6 @@ public:
}
Entry getEntry(const String& key) const;
- Entry getEntry(size_t index) const;
HeapVector<Entry> getAll(const String& key) const;
size_t size() const { return m_items.size(); }
« no previous file with comments | « Source/core/html/DOMFormData.cpp ('k') | Source/core/html/FormDataList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698