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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 class ArrayBufferOrArrayBufferViewOrBlobOrDocumentOrStringOrFormData; | 44 class ArrayBufferOrArrayBufferViewOrBlobOrDocumentOrStringOrFormData; |
45 class Blob; | 45 class Blob; |
46 class BlobDataHandle; | 46 class BlobDataHandle; |
47 class DOMArrayBuffer; | 47 class DOMArrayBuffer; |
48 class DOMArrayBufferView; | 48 class DOMArrayBufferView; |
49 class DOMFormData; | 49 class DOMFormData; |
50 class Document; | 50 class Document; |
51 class DocumentParser; | 51 class DocumentParser; |
52 class ExceptionState; | 52 class ExceptionState; |
53 class ReadableStream; | 53 class ReadableStream; |
| 54 class ScriptState; |
54 class SecurityOrigin; | 55 class SecurityOrigin; |
55 class SharedBuffer; | 56 class SharedBuffer; |
56 class Stream; | 57 class Stream; |
57 class TextResourceDecoder; | 58 class TextResourceDecoder; |
58 class ThreadableLoader; | 59 class ThreadableLoader; |
59 class XMLHttpRequestUpload; | 60 class XMLHttpRequestUpload; |
60 | 61 |
61 typedef int ExceptionCode; | 62 typedef int ExceptionCode; |
62 | 63 |
63 class XMLHttpRequest final | 64 class XMLHttpRequest final |
64 : public XMLHttpRequestEventTarget | 65 : public XMLHttpRequestEventTarget |
65 , public RefCountedWillBeNoBase<XMLHttpRequest> | 66 , public RefCountedWillBeNoBase<XMLHttpRequest> |
66 , private ThreadableLoaderClient | 67 , private ThreadableLoaderClient |
67 , public DocumentParserClient | 68 , public DocumentParserClient |
68 , public ActiveDOMObject { | 69 , public ActiveDOMObject { |
69 DEFINE_WRAPPERTYPEINFO(); | 70 DEFINE_WRAPPERTYPEINFO(); |
70 REFCOUNTED_EVENT_TARGET(XMLHttpRequest); | 71 REFCOUNTED_EVENT_TARGET(XMLHttpRequest); |
71 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(XMLHttpRequest); | 72 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(XMLHttpRequest); |
72 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(XMLHttpRequest); | 73 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(XMLHttpRequest); |
73 public: | 74 public: |
74 static PassRefPtrWillBeRawPtr<XMLHttpRequest> create(ExecutionContext*, Pass
RefPtr<SecurityOrigin> = nullptr); | 75 static PassRefPtrWillBeRawPtr<XMLHttpRequest> create(ScriptState*); |
| 76 static PassRefPtrWillBeRawPtr<XMLHttpRequest> create(ExecutionContext*); |
75 virtual ~XMLHttpRequest(); | 77 virtual ~XMLHttpRequest(); |
76 | 78 |
77 // These exact numeric values are important because JS expects them. | 79 // These exact numeric values are important because JS expects them. |
78 enum State { | 80 enum State { |
79 UNSENT = 0, | 81 UNSENT = 0, |
80 OPENED = 1, | 82 OPENED = 1, |
81 HEADERS_RECEIVED = 2, | 83 HEADERS_RECEIVED = 2, |
82 LOADING = 3, | 84 LOADING = 3, |
83 DONE = 4 | 85 DONE = 4 |
84 }; | 86 }; |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 bool m_sameOriginRequest; | 316 bool m_sameOriginRequest; |
315 // True iff the ongoing resource loading is using the downloadToFile | 317 // True iff the ongoing resource loading is using the downloadToFile |
316 // option. | 318 // option. |
317 bool m_downloadingToFile; | 319 bool m_downloadingToFile; |
318 bool m_responseTextOverflow; | 320 bool m_responseTextOverflow; |
319 }; | 321 }; |
320 | 322 |
321 } // namespace blink | 323 } // namespace blink |
322 | 324 |
323 #endif // XMLHttpRequest_h | 325 #endif // XMLHttpRequest_h |
OLD | NEW |