Commit 099083ef authored by darin@chromium.org's avatar darin@chromium.org

2009-06-23 Darin Fisher <darin@chromium.org>

        Reviewed by Darin Adler.

        https://bugs.webkit.org/show_bug.cgi?id=26650

        Add setFormContentType and setFormData since it is awkward for Chromium
        to use setFormInfoFromRequest to set the underlying members.  Also, add
        a clearChildren method that Chromium needs.  These methods are used as
        part of the Chromium code that serializes a HistoryItem for storing in
        the browser's session history.

        * history/HistoryItem.cpp:
        * history/HistoryItem.h:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@44994 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent bac633d9
2009-06-23 Darin Fisher <darin@chromium.org>
Reviewed by Darin Adler.
https://bugs.webkit.org/show_bug.cgi?id=26650
Add setFormContentType and setFormData since it is awkward for Chromium
to use setFormInfoFromRequest to set the underlying members. Also, add
a clearChildren method that Chromium needs. These methods are used as
part of the Chromium code that serializes a HistoryItem for storing in
the browser's session history.
* history/HistoryItem.cpp:
* history/HistoryItem.h:
2009-06-23 Eric Carlson <eric.carlson@apple.com>
Reviewed by Darin Adler.
......
......@@ -435,6 +435,11 @@ bool HistoryItem::hasChildren() const
return !m_children.isEmpty();
}
void HistoryItem::clearChildren()
{
m_children.clear();
}
String HistoryItem::formContentType() const
{
return m_formContentType;
......@@ -455,6 +460,16 @@ void HistoryItem::setFormInfoFromRequest(const ResourceRequest& request)
}
}
void HistoryItem::setFormData(PassRefPtr<FormData> formData)
{
m_formData = formData;
}
void HistoryItem::setFormContentType(const String& formContentType)
{
m_formContentType = formContentType;
}
FormData* HistoryItem::formData()
{
return m_formData.get();
......
......@@ -122,6 +122,8 @@ public:
void setIsTargetItem(bool);
void setFormInfoFromRequest(const ResourceRequest&);
void setFormData(PassRefPtr<FormData>);
void setFormContentType(const String&);
void recordInitialVisit();
......@@ -135,6 +137,7 @@ public:
HistoryItem* targetItem();
const HistoryItemVector& children() const;
bool hasChildren() const;
void clearChildren();
// This should not be called directly for HistoryItems that are already included
// in GlobalHistory. The WebKit api for this is to use -[WebHistory setLastVisitedTimeInterval:forItem:] instead.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment