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

Unified Diff: history/HistoryItem.h

Issue 220010: Store non-standard HTTP headers in history. (WebKit side) Base URL: http://svn.webkit.org/repository/webkit/trunk/WebCore/
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 | « no previous file | history/HistoryItem.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: history/HistoryItem.h
===================================================================
--- history/HistoryItem.h (revision 48585)
+++ history/HistoryItem.h (working copy)
@@ -27,6 +27,7 @@
#define HistoryItem_h
#include "IntPoint.h"
+#include "HTTPHeaderMap.h"
#include "PlatformString.h"
#include <wtf/OwnPtr.h>
#include <wtf/PassOwnPtr.h>
@@ -102,6 +103,7 @@
const String& referrer() const;
const String& target() const;
bool isTargetItem() const;
+ const HTTPHeaderMap& httpHeaderFields() const;
FormData* formData();
String formContentType() const;
@@ -127,6 +129,7 @@
void setParent(const String&);
void setTitle(const String&);
void setIsTargetItem(bool);
+ void setHTTPHeaderField(const String&, const String&);
void setFormInfoFromRequest(const ResourceRequest&);
void setFormData(PassRefPtr<FormData>);
@@ -196,6 +199,9 @@
void collapseDailyVisitsToWeekly();
void recordVisitAtTime(double, VisitCountBehavior = IncreaseVisitCount);
+ // Return true if the HTTP header should not be stored in the history
+ bool excludeHTTPHeaderFromStorage(const String& name) const;
+
HistoryItem* findTargetItem();
/* When adding new member variables to this class, please notify the Qt team.
@@ -230,6 +236,8 @@
RefPtr<FormData> m_formData;
String m_formContentType;
+ HTTPHeaderMap m_httpHeadersMap;
+
// PageCache controls these fields.
HistoryItem* m_next;
HistoryItem* m_prev;
« no previous file with comments | « no previous file | history/HistoryItem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698