| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2005, 2006 Alexey Proskuryakov <ap@nypop.com> | 3 * Copyright (C) 2005, 2006 Alexey Proskuryakov <ap@nypop.com> |
| 4 * Copyright (C) 2011 Google Inc. All rights reserved. | 4 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 5 * Copyright (C) 2012 Intel Corporation | 5 * Copyright (C) 2012 Intel Corporation |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Lesser General Public | 8 * modify it under the terms of the GNU Lesser General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 */ | 21 */ |
| 22 | 22 |
| 23 #ifndef XMLHttpRequest_h | 23 #ifndef XMLHttpRequest_h |
| 24 #define XMLHttpRequest_h | 24 #define XMLHttpRequest_h |
| 25 | 25 |
| 26 #include "bindings/core/v8/ActiveScriptWrappable.h" | 26 #include "bindings/core/v8/ActiveScriptWrappable.h" |
| 27 #include "bindings/core/v8/ScriptString.h" | 27 #include "bindings/core/v8/ScriptString.h" |
| 28 #include "bindings/core/v8/ScriptWrappable.h" | 28 #include "bindings/core/v8/ScriptWrappable.h" |
| 29 #include "bindings/core/v8/TraceWrapperMember.h" | 29 #include "bindings/core/v8/TraceWrapperMember.h" |
| 30 #include "core/dom/DocumentParserClient.h" | 30 #include "core/dom/DocumentParserClient.h" |
| 31 #include "core/dom/ExceptionCode.h" |
| 31 #include "core/dom/SuspendableObject.h" | 32 #include "core/dom/SuspendableObject.h" |
| 32 #include "core/loader/ThreadableLoaderClient.h" | 33 #include "core/loader/ThreadableLoaderClient.h" |
| 33 #include "core/xmlhttprequest/XMLHttpRequestEventTarget.h" | 34 #include "core/xmlhttprequest/XMLHttpRequestEventTarget.h" |
| 34 #include "core/xmlhttprequest/XMLHttpRequestProgressEventThrottle.h" | 35 #include "core/xmlhttprequest/XMLHttpRequestProgressEventThrottle.h" |
| 35 #include "platform/heap/Handle.h" | 36 #include "platform/heap/Handle.h" |
| 36 #include "platform/network/EncodedFormData.h" | 37 #include "platform/network/EncodedFormData.h" |
| 37 #include "platform/network/HTTPHeaderMap.h" | 38 #include "platform/network/HTTPHeaderMap.h" |
| 38 #include "platform/network/ResourceResponse.h" | 39 #include "platform/network/ResourceResponse.h" |
| 39 #include "platform/weborigin/KURL.h" | 40 #include "platform/weborigin/KURL.h" |
| 40 #include "platform/weborigin/SecurityOrigin.h" | 41 #include "platform/weborigin/SecurityOrigin.h" |
| 41 #include "wtf/Forward.h" | 42 #include "wtf/Forward.h" |
| 42 #include "wtf/PassRefPtr.h" | 43 #include "wtf/PassRefPtr.h" |
| 43 #include "wtf/RefPtr.h" | 44 #include "wtf/RefPtr.h" |
| 44 #include "wtf/text/AtomicString.h" | 45 #include "wtf/text/AtomicString.h" |
| 45 #include "wtf/text/StringBuilder.h" | |
| 46 #include "wtf/text/WTFString.h" | 46 #include "wtf/text/WTFString.h" |
| 47 #include <memory> | 47 #include <memory> |
| 48 | 48 |
| 49 namespace blink { | 49 namespace blink { |
| 50 | 50 |
| 51 class ArrayBufferOrArrayBufferViewOrBlobOrDocumentOrStringOrFormData; | 51 class ArrayBufferOrArrayBufferViewOrBlobOrDocumentOrStringOrFormData; |
| 52 class Blob; | 52 class Blob; |
| 53 class BlobDataHandle; | 53 class BlobDataHandle; |
| 54 class DOMArrayBuffer; | 54 class DOMArrayBuffer; |
| 55 class DOMArrayBufferView; | 55 class DOMArrayBufferView; |
| 56 class Document; | 56 class Document; |
| 57 class DocumentParser; | 57 class DocumentParser; |
| 58 class ExceptionState; | 58 class ExceptionState; |
| 59 class ExecutionContext; | 59 class ExecutionContext; |
| 60 class FormData; | 60 class FormData; |
| 61 class ScriptState; | 61 class ScriptState; |
| 62 class SharedBuffer; | 62 class SharedBuffer; |
| 63 class TextResourceDecoder; | 63 class TextResourceDecoder; |
| 64 class ThreadableLoader; | 64 class ThreadableLoader; |
| 65 class WebDataConsumerHandle; | 65 class WebDataConsumerHandle; |
| 66 class XMLHttpRequestUpload; | 66 class XMLHttpRequestUpload; |
| 67 | 67 |
| 68 typedef int ExceptionCode; | |
| 69 | |
| 70 class XMLHttpRequest final : public XMLHttpRequestEventTarget, | 68 class XMLHttpRequest final : public XMLHttpRequestEventTarget, |
| 71 private ThreadableLoaderClient, | 69 private ThreadableLoaderClient, |
| 72 public DocumentParserClient, | 70 public DocumentParserClient, |
| 73 public ActiveScriptWrappable<XMLHttpRequest>, | 71 public ActiveScriptWrappable<XMLHttpRequest>, |
| 74 public SuspendableObject { | 72 public SuspendableObject { |
| 75 DEFINE_WRAPPERTYPEINFO(); | 73 DEFINE_WRAPPERTYPEINFO(); |
| 76 USING_GARBAGE_COLLECTED_MIXIN(XMLHttpRequest); | 74 USING_GARBAGE_COLLECTED_MIXIN(XMLHttpRequest); |
| 77 | 75 |
| 78 public: | 76 public: |
| 79 static XMLHttpRequest* create(ScriptState*); | 77 static XMLHttpRequest* create(ScriptState*); |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 bool m_downloadingToFile; | 335 bool m_downloadingToFile; |
| 338 bool m_responseTextOverflow; | 336 bool m_responseTextOverflow; |
| 339 bool m_sendFlag; | 337 bool m_sendFlag; |
| 340 }; | 338 }; |
| 341 | 339 |
| 342 std::ostream& operator<<(std::ostream&, const XMLHttpRequest*); | 340 std::ostream& operator<<(std::ostream&, const XMLHttpRequest*); |
| 343 | 341 |
| 344 } // namespace blink | 342 } // namespace blink |
| 345 | 343 |
| 346 #endif // XMLHttpRequest_h | 344 #endif // XMLHttpRequest_h |
| OLD | NEW |