| 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 1004 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1015 resourceLoaderOptions.securityOrigin = getSecurityOrigin(); | 1015 resourceLoaderOptions.securityOrigin = getSecurityOrigin(); |
| 1016 | 1016 |
| 1017 // When responseType is set to "blob", we redirect the downloaded data to a | 1017 // When responseType is set to "blob", we redirect the downloaded data to a |
| 1018 // file-handle directly. | 1018 // file-handle directly. |
| 1019 m_downloadingToFile = getResponseTypeCode() == ResponseTypeBlob; | 1019 m_downloadingToFile = getResponseTypeCode() == ResponseTypeBlob; |
| 1020 if (m_downloadingToFile) { | 1020 if (m_downloadingToFile) { |
| 1021 request.setDownloadToFile(true); | 1021 request.setDownloadToFile(true); |
| 1022 resourceLoaderOptions.dataBufferingPolicy = DoNotBufferData; | 1022 resourceLoaderOptions.dataBufferingPolicy = DoNotBufferData; |
| 1023 } | 1023 } |
| 1024 | 1024 |
| 1025 if (m_async) { |
| 1026 resourceLoaderOptions.dataBufferingPolicy = DoNotBufferData; |
| 1027 } |
| 1028 |
| 1025 m_exceptionCode = 0; | 1029 m_exceptionCode = 0; |
| 1026 m_error = false; | 1030 m_error = false; |
| 1027 | 1031 |
| 1028 if (m_async) { | 1032 if (m_async) { |
| 1029 UseCounter::count(&executionContext, | 1033 UseCounter::count(&executionContext, |
| 1030 UseCounter::XMLHttpRequestAsynchronous); | 1034 UseCounter::XMLHttpRequestAsynchronous); |
| 1031 if (m_upload) | 1035 if (m_upload) |
| 1032 request.setReportUploadProgress(true); | 1036 request.setReportUploadProgress(true); |
| 1033 | 1037 |
| 1034 DCHECK(!m_loader); | 1038 DCHECK(!m_loader); |
| (...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1841 visitor->traceWrappers(m_responseDocument); | 1845 visitor->traceWrappers(m_responseDocument); |
| 1842 visitor->traceWrappers(m_responseArrayBuffer); | 1846 visitor->traceWrappers(m_responseArrayBuffer); |
| 1843 XMLHttpRequestEventTarget::traceWrappers(visitor); | 1847 XMLHttpRequestEventTarget::traceWrappers(visitor); |
| 1844 } | 1848 } |
| 1845 | 1849 |
| 1846 std::ostream& operator<<(std::ostream& ostream, const XMLHttpRequest* xhr) { | 1850 std::ostream& operator<<(std::ostream& ostream, const XMLHttpRequest* xhr) { |
| 1847 return ostream << "XMLHttpRequest " << static_cast<const void*>(xhr); | 1851 return ostream << "XMLHttpRequest " << static_cast<const void*>(xhr); |
| 1848 } | 1852 } |
| 1849 | 1853 |
| 1850 } // namespace blink | 1854 } // namespace blink |
| OLD | NEW |