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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 class ThreadableLoader; | 52 class ThreadableLoader; |
53 class UnderlyingSource; | 53 class UnderlyingSource; |
54 | 54 |
55 typedef int ExceptionCode; | 55 typedef int ExceptionCode; |
56 | 56 |
57 class XMLHttpRequest FINAL | 57 class XMLHttpRequest FINAL |
58 : public RefCountedWillBeGarbageCollectedFinalized<XMLHttpRequest> | 58 : public RefCountedWillBeGarbageCollectedFinalized<XMLHttpRequest> |
59 , public XMLHttpRequestEventTarget | 59 , public XMLHttpRequestEventTarget |
60 , private ThreadableLoaderClient | 60 , private ThreadableLoaderClient |
61 , public ActiveDOMObject { | 61 , public ActiveDOMObject { |
62 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; | 62 DEFINE_WRAPPERTYPEINFO(); |
63 REFCOUNTED_EVENT_TARGET(XMLHttpRequest); | 63 REFCOUNTED_EVENT_TARGET(XMLHttpRequest); |
64 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(XMLHttpRequest); | 64 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(XMLHttpRequest); |
| 65 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
65 public: | 66 public: |
66 static PassRefPtrWillBeRawPtr<XMLHttpRequest> create(ExecutionContext*, Pass
RefPtr<SecurityOrigin> = nullptr); | 67 static PassRefPtrWillBeRawPtr<XMLHttpRequest> create(ExecutionContext*, Pass
RefPtr<SecurityOrigin> = nullptr); |
67 virtual ~XMLHttpRequest(); | 68 virtual ~XMLHttpRequest(); |
68 | 69 |
69 // These exact numeric values are important because JS expects them. | 70 // These exact numeric values are important because JS expects them. |
70 enum State { | 71 enum State { |
71 UNSENT = 0, | 72 UNSENT = 0, |
72 OPENED = 1, | 73 OPENED = 1, |
73 HEADERS_RECEIVED = 2, | 74 HEADERS_RECEIVED = 2, |
74 LOADING = 3, | 75 LOADING = 3, |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 bool m_parsedResponse; | 283 bool m_parsedResponse; |
283 bool m_error; | 284 bool m_error; |
284 bool m_uploadEventsAllowed; | 285 bool m_uploadEventsAllowed; |
285 bool m_uploadComplete; | 286 bool m_uploadComplete; |
286 bool m_sameOriginRequest; | 287 bool m_sameOriginRequest; |
287 }; | 288 }; |
288 | 289 |
289 } // namespace blink | 290 } // namespace blink |
290 | 291 |
291 #endif // XMLHttpRequest_h | 292 #endif // XMLHttpRequest_h |
OLD | NEW |