| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2008, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2008, 2011 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2012 Research In Motion Limited. All rights reserved. | 3 * Copyright (C) 2012 Research In Motion Limited. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 long long documentSequenceNumber() const { return m_documentSequenceNumber;
} | 92 long long documentSequenceNumber() const { return m_documentSequenceNumber;
} |
| 93 | 93 |
| 94 void setTargetFrameID(int64_t id) { m_targetFrameID = id; } | 94 void setTargetFrameID(int64_t id) { m_targetFrameID = id; } |
| 95 int64_t targetFrameID() const { return m_targetFrameID; } | 95 int64_t targetFrameID() const { return m_targetFrameID; } |
| 96 | 96 |
| 97 void setFormInfoFromRequest(const ResourceRequest&); | 97 void setFormInfoFromRequest(const ResourceRequest&); |
| 98 void setFormData(PassRefPtr<FormData>); | 98 void setFormData(PassRefPtr<FormData>); |
| 99 void setFormContentType(const String&); | 99 void setFormContentType(const String&); |
| 100 | 100 |
| 101 void addChildItem(PassRefPtr<HistoryItem>); | 101 void addChildItem(PassRefPtr<HistoryItem>); |
| 102 void setChildItem(PassRefPtr<HistoryItem>); | |
| 103 HistoryItem* childItemWithTarget(const String&) const; | |
| 104 HistoryItem* childItemWithDocumentSequenceNumber(long long number) const; | |
| 105 const HistoryItemVector& children() const; | 102 const HistoryItemVector& children() const; |
| 106 void clearChildren(); | 103 void clearChildren(); |
| 107 | 104 |
| 108 bool shouldDoSameDocumentNavigationTo(HistoryItem* otherItem) const; | |
| 109 bool hasSameFrames(HistoryItem* otherItem) const; | |
| 110 | |
| 111 bool isCurrentDocument(Document*) const; | 105 bool isCurrentDocument(Document*) const; |
| 112 | 106 |
| 113 #ifndef NDEBUG | |
| 114 int showTree() const; | |
| 115 int showTreeWithIndent(unsigned indentLevel) const; | |
| 116 #endif | |
| 117 | |
| 118 private: | 107 private: |
| 119 HistoryItem(); | 108 HistoryItem(); |
| 120 explicit HistoryItem(const HistoryItem&); | 109 explicit HistoryItem(const HistoryItem&); |
| 121 | 110 |
| 122 bool hasSameDocumentTree(HistoryItem* otherItem) const; | |
| 123 | |
| 124 String m_urlString; | 111 String m_urlString; |
| 125 String m_originalURLString; | 112 String m_originalURLString; |
| 126 String m_referrer; | 113 String m_referrer; |
| 127 String m_target; | 114 String m_target; |
| 128 | 115 |
| 129 IntPoint m_scrollPoint; | 116 IntPoint m_scrollPoint; |
| 130 float m_pageScaleFactor; | 117 float m_pageScaleFactor; |
| 131 Vector<String> m_documentState; | 118 Vector<String> m_documentState; |
| 132 | 119 |
| 133 HistoryItemVector m_children; | 120 HistoryItemVector m_children; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 149 RefPtr<SerializedScriptValue> m_stateObject; | 136 RefPtr<SerializedScriptValue> m_stateObject; |
| 150 | 137 |
| 151 // info used to repost form data | 138 // info used to repost form data |
| 152 RefPtr<FormData> m_formData; | 139 RefPtr<FormData> m_formData; |
| 153 String m_formContentType; | 140 String m_formContentType; |
| 154 | 141 |
| 155 }; //class HistoryItem | 142 }; //class HistoryItem |
| 156 | 143 |
| 157 } //namespace WebCore | 144 } //namespace WebCore |
| 158 | 145 |
| 159 #ifndef NDEBUG | |
| 160 // Outside the WebCore namespace for ease of invocation from gdb. | |
| 161 extern "C" int showTree(const WebCore::HistoryItem*); | |
| 162 #endif | |
| 163 | |
| 164 #endif // HISTORYITEM_H | 146 #endif // HISTORYITEM_H |
| OLD | NEW |