OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) 2005-2007 Alexey Proskuryakov <ap@webkit.org> | 3 * Copyright (C) 2005-2007 Alexey Proskuryakov <ap@webkit.org> |
4 * Copyright (C) 2007, 2008 Julien Chaffraix <jchaffraix@webkit.org> | 4 * Copyright (C) 2007, 2008 Julien Chaffraix <jchaffraix@webkit.org> |
5 * Copyright (C) 2008, 2011 Google Inc. All rights reserved. | 5 * Copyright (C) 2008, 2011 Google Inc. All rights reserved. |
6 * Copyright (C) 2012 Intel Corporation | 6 * Copyright (C) 2012 Intel Corporation |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Lesser General Public | 9 * modify it under the terms of the GNU Lesser General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
745 void XMLHttpRequest::send(DOMFormData* body, ExceptionState& exceptionState) | 745 void XMLHttpRequest::send(DOMFormData* body, ExceptionState& exceptionState) |
746 { | 746 { |
747 WTF_LOG(Network, "XMLHttpRequest %p send() DOMFormData %p", this, body); | 747 WTF_LOG(Network, "XMLHttpRequest %p send() DOMFormData %p", this, body); |
748 | 748 |
749 if (!initSend(exceptionState)) | 749 if (!initSend(exceptionState)) |
750 return; | 750 return; |
751 | 751 |
752 RefPtr<FormData> httpBody; | 752 RefPtr<FormData> httpBody; |
753 | 753 |
754 if (areMethodAndURLValidForSend()) { | 754 if (areMethodAndURLValidForSend()) { |
755 httpBody = body->createMultiPartFormData(body->encoding()); | 755 httpBody = body->createMultiPartFormData(); |
756 | 756 |
757 if (getRequestHeader("Content-Type").isEmpty()) { | 757 if (getRequestHeader("Content-Type").isEmpty()) { |
758 AtomicString contentType = AtomicString("multipart/form-data; bounda
ry=", AtomicString::ConstructFromLiteral) + httpBody->boundary().data(); | 758 AtomicString contentType = AtomicString("multipart/form-data; bounda
ry=", AtomicString::ConstructFromLiteral) + httpBody->boundary().data(); |
759 setRequestHeaderInternal("Content-Type", contentType); | 759 setRequestHeaderInternal("Content-Type", contentType); |
760 } | 760 } |
761 } | 761 } |
762 | 762 |
763 createRequest(httpBody.release(), exceptionState); | 763 createRequest(httpBody.release(), exceptionState); |
764 } | 764 } |
765 | 765 |
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1458 { | 1458 { |
1459 visitor->trace(m_responseBlob); | 1459 visitor->trace(m_responseBlob); |
1460 visitor->trace(m_responseStream); | 1460 visitor->trace(m_responseStream); |
1461 visitor->trace(m_responseDocument); | 1461 visitor->trace(m_responseDocument); |
1462 visitor->trace(m_progressEventThrottle); | 1462 visitor->trace(m_progressEventThrottle); |
1463 visitor->trace(m_upload); | 1463 visitor->trace(m_upload); |
1464 XMLHttpRequestEventTarget::trace(visitor); | 1464 XMLHttpRequestEventTarget::trace(visitor); |
1465 } | 1465 } |
1466 | 1466 |
1467 } // namespace WebCore | 1467 } // namespace WebCore |
OLD | NEW |