| 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 |
| 11 * version 2 of the License, or (at your option) any later version. | 11 * version 2 of the License, or (at your option) any later version. |
| 12 * | 12 * |
| 13 * This library is distributed in the hope that it will be useful, | 13 * This library is distributed in the hope that it will be useful, |
| 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 * Lesser General Public License for more details. | 16 * Lesser General Public License for more details. |
| 17 * | 17 * |
| 18 * You should have received a copy of the GNU Lesser General Public | 18 * You should have received a copy of the GNU Lesser General Public |
| 19 * License along with this library; if not, write to the Free Software | 19 * License along with this library; if not, write to the Free Software |
| 20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, | 20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 21 * Boston, MA 02110-1301 USA | 21 * Boston, MA 02110-1301 USA |
| 22 */ | 22 */ |
| 23 | 23 |
| 24 #include "core/xmlhttprequest/XMLHttpRequest.h" | 24 #include "core/xmlhttprequest/XMLHttpRequest.h" |
| 25 | 25 |
| 26 #include <memory> |
| 26 #include "bindings/core/v8/ArrayBufferOrArrayBufferViewOrBlobOrDocumentOrStringO
rFormData.h" | 27 #include "bindings/core/v8/ArrayBufferOrArrayBufferViewOrBlobOrDocumentOrStringO
rFormData.h" |
| 27 #include "bindings/core/v8/ArrayBufferOrArrayBufferViewOrBlobOrUSVString.h" | 28 #include "bindings/core/v8/ArrayBufferOrArrayBufferViewOrBlobOrUSVString.h" |
| 28 #include "bindings/core/v8/DOMWrapperWorld.h" | 29 #include "bindings/core/v8/DOMWrapperWorld.h" |
| 29 #include "bindings/core/v8/ExceptionState.h" | 30 #include "bindings/core/v8/ExceptionState.h" |
| 30 #include "bindings/core/v8/ScriptState.h" | 31 #include "bindings/core/v8/ScriptState.h" |
| 31 #include "core/dom/DOMArrayBuffer.h" | 32 #include "core/dom/DOMArrayBuffer.h" |
| 32 #include "core/dom/DOMArrayBufferView.h" | 33 #include "core/dom/DOMArrayBufferView.h" |
| 33 #include "core/dom/DOMException.h" | 34 #include "core/dom/DOMException.h" |
| 34 #include "core/dom/DOMImplementation.h" | 35 #include "core/dom/DOMImplementation.h" |
| 35 #include "core/dom/DOMTypedArray.h" | 36 #include "core/dom/DOMTypedArray.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 #include "platform/network/ResourceError.h" | 75 #include "platform/network/ResourceError.h" |
| 75 #include "platform/network/ResourceRequest.h" | 76 #include "platform/network/ResourceRequest.h" |
| 76 #include "platform/weborigin/SecurityOrigin.h" | 77 #include "platform/weborigin/SecurityOrigin.h" |
| 77 #include "platform/weborigin/SecurityPolicy.h" | 78 #include "platform/weborigin/SecurityPolicy.h" |
| 78 #include "platform/weborigin/Suborigin.h" | 79 #include "platform/weborigin/Suborigin.h" |
| 79 #include "public/platform/WebURLRequest.h" | 80 #include "public/platform/WebURLRequest.h" |
| 80 #include "wtf/Assertions.h" | 81 #include "wtf/Assertions.h" |
| 81 #include "wtf/AutoReset.h" | 82 #include "wtf/AutoReset.h" |
| 82 #include "wtf/StdLibExtras.h" | 83 #include "wtf/StdLibExtras.h" |
| 83 #include "wtf/text/CString.h" | 84 #include "wtf/text/CString.h" |
| 84 #include <memory> | |
| 85 | 85 |
| 86 namespace blink { | 86 namespace blink { |
| 87 | 87 |
| 88 namespace { | 88 namespace { |
| 89 | 89 |
| 90 // This class protects the wrapper of the associated XMLHttpRequest object | 90 // This class protects the wrapper of the associated XMLHttpRequest object |
| 91 // via hasPendingActivity method which returns true if | 91 // via hasPendingActivity method which returns true if |
| 92 // m_eventDispatchRecursionLevel is positive. | 92 // m_eventDispatchRecursionLevel is positive. |
| 93 class ScopedEventDispatchProtect final { | 93 class ScopedEventDispatchProtect final { |
| 94 public: | 94 public: |
| (...skipping 1764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1859 visitor->traceWrappers(m_responseDocument); | 1859 visitor->traceWrappers(m_responseDocument); |
| 1860 visitor->traceWrappers(m_responseArrayBuffer); | 1860 visitor->traceWrappers(m_responseArrayBuffer); |
| 1861 XMLHttpRequestEventTarget::traceWrappers(visitor); | 1861 XMLHttpRequestEventTarget::traceWrappers(visitor); |
| 1862 } | 1862 } |
| 1863 | 1863 |
| 1864 std::ostream& operator<<(std::ostream& ostream, const XMLHttpRequest* xhr) { | 1864 std::ostream& operator<<(std::ostream& ostream, const XMLHttpRequest* xhr) { |
| 1865 return ostream << "XMLHttpRequest " << static_cast<const void*>(xhr); | 1865 return ostream << "XMLHttpRequest " << static_cast<const void*>(xhr); |
| 1866 } | 1866 } |
| 1867 | 1867 |
| 1868 } // namespace blink | 1868 } // namespace blink |
| OLD | NEW |