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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
90 | 90 |
91 void setItemSequenceNumber(long long number) { m_itemSequenceNumber = number ; } | 91 void setItemSequenceNumber(long long number) { m_itemSequenceNumber = number ; } |
92 long long itemSequenceNumber() const { return m_itemSequenceNumber; } | 92 long long itemSequenceNumber() const { return m_itemSequenceNumber; } |
93 | 93 |
94 void setDocumentSequenceNumber(long long number) { m_documentSequenceNumber = number; } | 94 void setDocumentSequenceNumber(long long number) { m_documentSequenceNumber = number; } |
95 long long documentSequenceNumber() const { return m_documentSequenceNumber; } | 95 long long documentSequenceNumber() const { return m_documentSequenceNumber; } |
96 | 96 |
97 void setFrameSequenceNumber(long long number) { m_frameSequenceNumber = numb er; } | 97 void setFrameSequenceNumber(long long number) { m_frameSequenceNumber = numb er; } |
98 long long frameSequenceNumber() const { return m_frameSequenceNumber; } | 98 long long frameSequenceNumber() const { return m_frameSequenceNumber; } |
99 | 99 |
100 void setIsCreatedByHistoryAPI(bool isCreatedByHistoryAPI) { m_isCreatedByHis toryAPI = isCreatedByHistoryAPI; } | |
101 bool isCreatedByHistoryAPI() { return m_isCreatedByHistoryAPI; } | |
102 | |
100 void setFormInfoFromRequest(const ResourceRequest&); | 103 void setFormInfoFromRequest(const ResourceRequest&); |
101 void setFormData(PassRefPtr<FormData>); | 104 void setFormData(PassRefPtr<FormData>); |
102 void setFormContentType(const AtomicString&); | 105 void setFormContentType(const AtomicString&); |
103 | 106 |
104 bool isCurrentDocument(Document*) const; | 107 bool isCurrentDocument(Document*) const; |
105 | 108 |
106 void trace(Visitor*); | 109 void trace(Visitor*); |
107 | 110 |
108 private: | 111 private: |
109 HistoryItem(); | 112 HistoryItem(); |
(...skipping 18 matching lines...) Expand all Loading... | |
128 // refer to the same instance of a document. Traversing history from one | 131 // refer to the same instance of a document. Traversing history from one |
129 // such HistoryItem to another preserves the document. | 132 // such HistoryItem to another preserves the document. |
130 int64_t m_documentSequenceNumber; | 133 int64_t m_documentSequenceNumber; |
131 | 134 |
132 // If two HistoryItems have the same frame sequence number, then they | 135 // If two HistoryItems have the same frame sequence number, then they |
133 // refer to the same instance of a Frame. This is used to determine whether | 136 // refer to the same instance of a Frame. This is used to determine whether |
134 // whether a HistoryItem should navigate an existing frame or create a new | 137 // whether a HistoryItem should navigate an existing frame or create a new |
135 // one during a history navigation. | 138 // one during a history navigation. |
136 int64_t m_frameSequenceNumber; | 139 int64_t m_frameSequenceNumber; |
137 | 140 |
141 // True if history item was created via JS History API | |
tdresser
2015/02/26 18:04:02
Add period at EOL.
| |
142 bool m_isCreatedByHistoryAPI; | |
143 | |
138 // Support for HTML5 History | 144 // Support for HTML5 History |
139 RefPtr<SerializedScriptValue> m_stateObject; | 145 RefPtr<SerializedScriptValue> m_stateObject; |
140 | 146 |
141 // info used to repost form data | 147 // info used to repost form data |
142 RefPtr<FormData> m_formData; | 148 RefPtr<FormData> m_formData; |
143 AtomicString m_formContentType; | 149 AtomicString m_formContentType; |
144 | 150 |
145 }; // class HistoryItem | 151 }; // class HistoryItem |
146 | 152 |
147 } // namespace blink | 153 } // namespace blink |
148 | 154 |
149 #endif // HISTORYITEM_H | 155 #endif // HISTORYITEM_H |
OLD | NEW |