| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 #include "core/fetch/FetchInitiatorTypeNames.h" | 43 #include "core/fetch/FetchInitiatorTypeNames.h" |
| 44 #include "core/fetch/FetchUtils.h" | 44 #include "core/fetch/FetchUtils.h" |
| 45 #include "core/fetch/ResourceLoaderOptions.h" | 45 #include "core/fetch/ResourceLoaderOptions.h" |
| 46 #include "core/fileapi/Blob.h" | 46 #include "core/fileapi/Blob.h" |
| 47 #include "core/fileapi/File.h" | 47 #include "core/fileapi/File.h" |
| 48 #include "core/fileapi/FileReaderLoader.h" | 48 #include "core/fileapi/FileReaderLoader.h" |
| 49 #include "core/fileapi/FileReaderLoaderClient.h" | 49 #include "core/fileapi/FileReaderLoaderClient.h" |
| 50 #include "core/frame/Settings.h" | 50 #include "core/frame/Settings.h" |
| 51 #include "core/frame/UseCounter.h" | 51 #include "core/frame/UseCounter.h" |
| 52 #include "core/frame/csp/ContentSecurityPolicy.h" | 52 #include "core/frame/csp/ContentSecurityPolicy.h" |
| 53 #include "core/html/DOMFormData.h" | 53 #include "core/html/FormData.h" |
| 54 #include "core/html/HTMLDocument.h" | 54 #include "core/html/HTMLDocument.h" |
| 55 #include "core/html/parser/TextResourceDecoder.h" | 55 #include "core/html/parser/TextResourceDecoder.h" |
| 56 #include "core/inspector/ConsoleMessage.h" | 56 #include "core/inspector/ConsoleMessage.h" |
| 57 #include "core/inspector/InspectorInstrumentation.h" | 57 #include "core/inspector/InspectorInstrumentation.h" |
| 58 #include "core/inspector/InspectorTraceEvents.h" | 58 #include "core/inspector/InspectorTraceEvents.h" |
| 59 #include "core/loader/ThreadableLoader.h" | 59 #include "core/loader/ThreadableLoader.h" |
| 60 #include "core/page/ChromeClient.h" | 60 #include "core/page/ChromeClient.h" |
| 61 #include "core/page/Page.h" | 61 #include "core/page/Page.h" |
| 62 #include "core/streams/Stream.h" | 62 #include "core/streams/Stream.h" |
| 63 #include "core/xmlhttprequest/XMLHttpRequestProgressEvent.h" | 63 #include "core/xmlhttprequest/XMLHttpRequestProgressEvent.h" |
| (...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 775 else | 775 else |
| 776 ASSERT_NOT_REACHED(); | 776 ASSERT_NOT_REACHED(); |
| 777 } else { | 777 } else { |
| 778 httpBody->appendBlob(body->uuid(), body->blobDataHandle()); | 778 httpBody->appendBlob(body->uuid(), body->blobDataHandle()); |
| 779 } | 779 } |
| 780 } | 780 } |
| 781 | 781 |
| 782 createRequest(httpBody.release(), exceptionState); | 782 createRequest(httpBody.release(), exceptionState); |
| 783 } | 783 } |
| 784 | 784 |
| 785 void XMLHttpRequest::send(DOMFormData* body, ExceptionState& exceptionState) | 785 void XMLHttpRequest::send(FormData* body, ExceptionState& exceptionState) |
| 786 { | 786 { |
| 787 WTF_LOG(Network, "XMLHttpRequest %p send() DOMFormData %p", this, body); | 787 WTF_LOG(Network, "XMLHttpRequest %p send() FormData %p", this, body); |
| 788 | 788 |
| 789 if (!initSend(exceptionState)) | 789 if (!initSend(exceptionState)) |
| 790 return; | 790 return; |
| 791 | 791 |
| 792 RefPtr<EncodedFormData> httpBody; | 792 RefPtr<EncodedFormData> httpBody; |
| 793 | 793 |
| 794 if (areMethodAndURLValidForSend()) { | 794 if (areMethodAndURLValidForSend()) { |
| 795 httpBody = body->createMultiPartFormData(); | 795 httpBody = body->createMultiPartFormData(); |
| 796 | 796 |
| 797 if (getRequestHeader("Content-Type").isEmpty()) { | 797 if (getRequestHeader("Content-Type").isEmpty()) { |
| (...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1697 visitor->trace(m_responseDocumentParser); | 1697 visitor->trace(m_responseDocumentParser); |
| 1698 visitor->trace(m_progressEventThrottle); | 1698 visitor->trace(m_progressEventThrottle); |
| 1699 visitor->trace(m_upload); | 1699 visitor->trace(m_upload); |
| 1700 visitor->trace(m_blobLoader); | 1700 visitor->trace(m_blobLoader); |
| 1701 XMLHttpRequestEventTarget::trace(visitor); | 1701 XMLHttpRequestEventTarget::trace(visitor); |
| 1702 DocumentParserClient::trace(visitor); | 1702 DocumentParserClient::trace(visitor); |
| 1703 ActiveDOMObject::trace(visitor); | 1703 ActiveDOMObject::trace(visitor); |
| 1704 } | 1704 } |
| 1705 | 1705 |
| 1706 } // namespace blink | 1706 } // namespace blink |
| OLD | NEW |