| Index: webkit/api/src/WebHistoryItem.cpp
|
| ===================================================================
|
| --- webkit/api/src/WebHistoryItem.cpp (revision 26790)
|
| +++ webkit/api/src/WebHistoryItem.cpp (working copy)
|
| @@ -36,6 +36,7 @@
|
| #include "KURL.h"
|
|
|
| #include "WebHTTPBody.h"
|
| +#include "WebHTTPHeaderVisitor.h"
|
| #include "WebPoint.h"
|
| #include "WebString.h"
|
| #include "WebVector.h"
|
| @@ -241,6 +242,21 @@
|
| m_private->setFormData(httpBody);
|
| }
|
|
|
| +void WebHistoryItem::setHTTPHeaderField(const WebString& name,
|
| + const WebString& value)
|
| +{
|
| + m_private->setHTTPHeaderField(name, value);
|
| +}
|
| +
|
| +void WebHistoryItem::visitHTTPHeaderFields(WebHTTPHeaderVisitor* visitor) const
|
| +{
|
| + ASSERT(visitor);
|
| + const HTTPHeaderMap& headerMap = m_private->httpHeaderFields();
|
| + HTTPHeaderMap::const_iterator it = headerMap.begin();
|
| + for (; it != headerMap.end(); ++it)
|
| + visitor->visitHeader(it->first, it->second);
|
| +}
|
| +
|
| WebVector<WebHistoryItem> WebHistoryItem::children() const
|
| {
|
| ASSERT(!isNull());
|
|
|