| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 | 89 |
| 90 void setStateObject(PassRefPtr<SerializedScriptValue>); | 90 void setStateObject(PassRefPtr<SerializedScriptValue>); |
| 91 SerializedScriptValue* stateObject() const { return m_stateObject.get(); } | 91 SerializedScriptValue* stateObject() const { return m_stateObject.get(); } |
| 92 | 92 |
| 93 void setItemSequenceNumber(long long number) { m_itemSequenceNumber = number
; } | 93 void setItemSequenceNumber(long long number) { m_itemSequenceNumber = number
; } |
| 94 long long itemSequenceNumber() const { return m_itemSequenceNumber; } | 94 long long itemSequenceNumber() const { return m_itemSequenceNumber; } |
| 95 | 95 |
| 96 void setDocumentSequenceNumber(long long number) { m_documentSequenceNumber
= number; } | 96 void setDocumentSequenceNumber(long long number) { m_documentSequenceNumber
= number; } |
| 97 long long documentSequenceNumber() const { return m_documentSequenceNumber;
} | 97 long long documentSequenceNumber() const { return m_documentSequenceNumber;
} |
| 98 | 98 |
| 99 void setFrameSequenceNumber(long long number) { m_frameSequenceNumber = numb
er; } | |
| 100 long long frameSequenceNumber() const { return m_frameSequenceNumber; } | |
| 101 | |
| 102 void setScrollRestorationType(HistoryScrollRestorationType type) { m_scroll
RestorationType = type; } | 99 void setScrollRestorationType(HistoryScrollRestorationType type) { m_scroll
RestorationType = type; } |
| 103 HistoryScrollRestorationType scrollRestorationType() { return m_scrollRestor
ationType; } | 100 HistoryScrollRestorationType scrollRestorationType() { return m_scrollRestor
ationType; } |
| 104 | 101 |
| 105 void setFormInfoFromRequest(const ResourceRequest&); | 102 void setFormInfoFromRequest(const ResourceRequest&); |
| 106 void setFormData(PassRefPtr<FormData>); | 103 void setFormData(PassRefPtr<FormData>); |
| 107 void setFormContentType(const AtomicString&); | 104 void setFormContentType(const AtomicString&); |
| 108 | 105 |
| 109 bool isCurrentDocument(Document*) const; | 106 bool isCurrentDocument(Document*) const; |
| 110 | 107 |
| 111 DECLARE_TRACE(); | 108 DECLARE_TRACE(); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 127 // clones of one another. Traversing history from one such HistoryItem to | 124 // clones of one another. Traversing history from one such HistoryItem to |
| 128 // another is a no-op. HistoryItem clones are created for parent and | 125 // another is a no-op. HistoryItem clones are created for parent and |
| 129 // sibling frames when only a subframe navigates. | 126 // sibling frames when only a subframe navigates. |
| 130 int64_t m_itemSequenceNumber; | 127 int64_t m_itemSequenceNumber; |
| 131 | 128 |
| 132 // If two HistoryItems have the same document sequence number, then they | 129 // If two HistoryItems have the same document sequence number, then they |
| 133 // refer to the same instance of a document. Traversing history from one | 130 // refer to the same instance of a document. Traversing history from one |
| 134 // such HistoryItem to another preserves the document. | 131 // such HistoryItem to another preserves the document. |
| 135 int64_t m_documentSequenceNumber; | 132 int64_t m_documentSequenceNumber; |
| 136 | 133 |
| 137 // If two HistoryItems have the same frame sequence number, then they | |
| 138 // refer to the same instance of a Frame. This is used to determine whether | |
| 139 // whether a HistoryItem should navigate an existing frame or create a new | |
| 140 // one during a history navigation. | |
| 141 int64_t m_frameSequenceNumber; | |
| 142 | |
| 143 // Type of the scroll restoration for the history item determines if scroll | 134 // Type of the scroll restoration for the history item determines if scroll |
| 144 // position should be restored when it is loaded during history traversal. | 135 // position should be restored when it is loaded during history traversal. |
| 145 HistoryScrollRestorationType m_scrollRestorationType; | 136 HistoryScrollRestorationType m_scrollRestorationType; |
| 146 | 137 |
| 147 // Support for HTML5 History | 138 // Support for HTML5 History |
| 148 RefPtr<SerializedScriptValue> m_stateObject; | 139 RefPtr<SerializedScriptValue> m_stateObject; |
| 149 | 140 |
| 150 // info used to repost form data | 141 // info used to repost form data |
| 151 RefPtr<FormData> m_formData; | 142 RefPtr<FormData> m_formData; |
| 152 AtomicString m_formContentType; | 143 AtomicString m_formContentType; |
| 153 | 144 |
| 154 }; // class HistoryItem | 145 }; // class HistoryItem |
| 155 | 146 |
| 156 } // namespace blink | 147 } // namespace blink |
| 157 | 148 |
| 158 #endif // HISTORYITEM_H | 149 #endif // HISTORYITEM_H |
| OLD | NEW |