OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2005, 2006, 2008, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006, 2008, 2011 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 // FIXME: Eventually we have to make this smart enough to handle the cas
e where | 173 // FIXME: Eventually we have to make this smart enough to handle the cas
e where |
174 // we have a stream for the body to handle the "data interspersed with f
iles" feature. | 174 // we have a stream for the body to handle the "data interspersed with f
iles" feature. |
175 m_formData = request.httpBody(); | 175 m_formData = request.httpBody(); |
176 m_formContentType = request.httpContentType(); | 176 m_formContentType = request.httpContentType(); |
177 } else { | 177 } else { |
178 m_formData = nullptr; | 178 m_formData = nullptr; |
179 m_formContentType = nullAtom; | 179 m_formContentType = nullAtom; |
180 } | 180 } |
181 } | 181 } |
182 | 182 |
183 void HistoryItem::setFormData(PassRefPtr<FormData> formData) | 183 void HistoryItem::setFormData(PassRefPtr<EncodedFormData> formData) |
184 { | 184 { |
185 m_formData = formData; | 185 m_formData = formData; |
186 } | 186 } |
187 | 187 |
188 void HistoryItem::setFormContentType(const AtomicString& formContentType) | 188 void HistoryItem::setFormContentType(const AtomicString& formContentType) |
189 { | 189 { |
190 m_formContentType = formContentType; | 190 m_formContentType = formContentType; |
191 } | 191 } |
192 | 192 |
193 FormData* HistoryItem::formData() | 193 EncodedFormData* HistoryItem::formData() |
194 { | 194 { |
195 return m_formData.get(); | 195 return m_formData.get(); |
196 } | 196 } |
197 | 197 |
198 bool HistoryItem::isCurrentDocument(Document* doc) const | 198 bool HistoryItem::isCurrentDocument(Document* doc) const |
199 { | 199 { |
200 // FIXME: We should find a better way to check if this is the current docume
nt. | 200 // FIXME: We should find a better way to check if this is the current docume
nt. |
201 return equalIgnoringFragmentIdentifier(url(), doc->url()); | 201 return equalIgnoringFragmentIdentifier(url(), doc->url()); |
202 } | 202 } |
203 | 203 |
204 DEFINE_TRACE(HistoryItem) | 204 DEFINE_TRACE(HistoryItem) |
205 { | 205 { |
206 visitor->trace(m_documentState); | 206 visitor->trace(m_documentState); |
207 } | 207 } |
208 | 208 |
209 } // namespace blink | 209 } // namespace blink |
OLD | NEW |