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

Unified Diff: webkit/api/src/WebHistoryItem.cpp

Issue 225012: Store non-standard HTTP headers in history Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 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 | « webkit/api/public/WebHistoryItem.h ('k') | webkit/glue/glue_serialize.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « webkit/api/public/WebHistoryItem.h ('k') | webkit/glue/glue_serialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698