| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 FrameLoadRequest frameRequest(originDocument); | 289 FrameLoadRequest frameRequest(originDocument); |
| 290 | 290 |
| 291 if (!m_target.isEmpty()) | 291 if (!m_target.isEmpty()) |
| 292 frameRequest.setFrameName(m_target); | 292 frameRequest.setFrameName(m_target); |
| 293 | 293 |
| 294 if (m_method == FormSubmission::PostMethod) { | 294 if (m_method == FormSubmission::PostMethod) { |
| 295 frameRequest.resourceRequest().setHTTPMethod("POST"); | 295 frameRequest.resourceRequest().setHTTPMethod("POST"); |
| 296 frameRequest.resourceRequest().setHTTPBody(m_formData); | 296 frameRequest.resourceRequest().setHTTPBody(m_formData); |
| 297 | 297 |
| 298 // construct some user headers if necessary | 298 // construct some user headers if necessary |
| 299 if (m_boundary.isEmpty()) | 299 if (m_boundary.isEmpty()) { |
| 300 frameRequest.resourceRequest().setHTTPContentType(m_contentType); | 300 frameRequest.resourceRequest().setHTTPContentType(m_contentType); |
| 301 else | 301 } else { |
| 302 frameRequest.resourceRequest().setHTTPContentType( | 302 frameRequest.resourceRequest().setHTTPContentType( |
| 303 m_contentType + "; boundary=" + m_boundary); | 303 m_contentType + "; boundary=" + m_boundary); |
| 304 } |
| 304 } | 305 } |
| 305 | 306 |
| 306 frameRequest.resourceRequest().setURL(requestURL()); | 307 frameRequest.resourceRequest().setURL(requestURL()); |
| 307 | 308 |
| 308 frameRequest.setTriggeringEvent(m_event); | 309 frameRequest.setTriggeringEvent(m_event); |
| 309 frameRequest.setForm(m_form); | 310 frameRequest.setForm(m_form); |
| 310 | 311 |
| 311 return frameRequest; | 312 return frameRequest; |
| 312 } | 313 } |
| 313 | 314 |
| 314 } // namespace blink | 315 } // namespace blink |
| OLD | NEW |