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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 | 130 |
131 void HistoryItem::SetStateObject(PassRefPtr<SerializedScriptValue> object) { | 131 void HistoryItem::SetStateObject(PassRefPtr<SerializedScriptValue> object) { |
132 state_object_ = std::move(object); | 132 state_object_ = std::move(object); |
133 } | 133 } |
134 | 134 |
135 const AtomicString& HistoryItem::FormContentType() const { | 135 const AtomicString& HistoryItem::FormContentType() const { |
136 return form_content_type_; | 136 return form_content_type_; |
137 } | 137 } |
138 | 138 |
139 void HistoryItem::SetFormInfoFromRequest(const ResourceRequest& request) { | 139 void HistoryItem::SetFormInfoFromRequest(const ResourceRequest& request) { |
140 if (EqualIgnoringCase(request.HttpMethod(), "POST")) { | 140 if (DeprecatedEqualIgnoringCase(request.HttpMethod(), "POST")) { |
141 // FIXME: Eventually we have to make this smart enough to handle the case | 141 // FIXME: Eventually we have to make this smart enough to handle the case |
142 // where we have a stream for the body to handle the "data interspersed with | 142 // where we have a stream for the body to handle the "data interspersed with |
143 // files" feature. | 143 // files" feature. |
144 form_data_ = request.HttpBody(); | 144 form_data_ = request.HttpBody(); |
145 form_content_type_ = request.HttpContentType(); | 145 form_content_type_ = request.HttpContentType(); |
146 } else { | 146 } else { |
147 form_data_ = nullptr; | 147 form_data_ = nullptr; |
148 form_content_type_ = g_null_atom; | 148 form_content_type_ = g_null_atom; |
149 } | 149 } |
150 } | 150 } |
(...skipping 22 matching lines...) Expand all Loading... |
173 request.AddHTTPOriginIfNeeded(referrer_.referrer); | 173 request.AddHTTPOriginIfNeeded(referrer_.referrer); |
174 } | 174 } |
175 return request; | 175 return request; |
176 } | 176 } |
177 | 177 |
178 DEFINE_TRACE(HistoryItem) { | 178 DEFINE_TRACE(HistoryItem) { |
179 visitor->Trace(document_state_); | 179 visitor->Trace(document_state_); |
180 } | 180 } |
181 | 181 |
182 } // namespace blink | 182 } // namespace blink |
OLD | NEW |