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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 class ExceptionState; | 46 class ExceptionState; |
47 class ResourceRequest; | 47 class ResourceRequest; |
48 class SecurityOrigin; | 48 class SecurityOrigin; |
49 class SharedBuffer; | 49 class SharedBuffer; |
50 class Stream; | 50 class Stream; |
51 class TextResourceDecoder; | 51 class TextResourceDecoder; |
52 class ThreadableLoader; | 52 class ThreadableLoader; |
53 | 53 |
54 typedef int ExceptionCode; | 54 typedef int ExceptionCode; |
55 | 55 |
56 class XMLHttpRequest FINAL : public RefCountedWillBeRefCountedGarbageCollected<X
MLHttpRequest>, public ScriptWrappable, public XMLHttpRequestEventTarget, privat
e ThreadableLoaderClient, public ActiveDOMObject { | 56 class XMLHttpRequest FINAL |
| 57 : public RefCountedWillBeRefCountedGarbageCollected<XMLHttpRequest> |
| 58 , public ScriptWrappable |
| 59 , public XMLHttpRequestEventTarget |
| 60 , private ThreadableLoaderClient |
| 61 , public ActiveDOMObject { |
57 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; | 62 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
58 REFCOUNTED_EVENT_TARGET(XMLHttpRequest); | 63 REFCOUNTED_EVENT_TARGET(XMLHttpRequest); |
59 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(XMLHttpRequest); | 64 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(XMLHttpRequest); |
60 public: | 65 public: |
61 static PassRefPtrWillBeRawPtr<XMLHttpRequest> create(ExecutionContext*, Pass
RefPtr<SecurityOrigin> = nullptr); | 66 static PassRefPtrWillBeRawPtr<XMLHttpRequest> create(ExecutionContext*, Pass
RefPtr<SecurityOrigin> = nullptr); |
62 virtual ~XMLHttpRequest(); | 67 virtual ~XMLHttpRequest(); |
63 | 68 |
64 // These exact numeric values are important because JS expects them. | 69 // These exact numeric values are important because JS expects them. |
65 enum State { | 70 enum State { |
66 UNSENT = 0, | 71 UNSENT = 0, |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 | 267 |
263 // An enum corresponding to the allowed string values for the responseType a
ttribute. | 268 // An enum corresponding to the allowed string values for the responseType a
ttribute. |
264 ResponseTypeCode m_responseTypeCode; | 269 ResponseTypeCode m_responseTypeCode; |
265 AsyncMethodRunner<XMLHttpRequest> m_dropProtectionRunner; | 270 AsyncMethodRunner<XMLHttpRequest> m_dropProtectionRunner; |
266 RefPtr<SecurityOrigin> m_securityOrigin; | 271 RefPtr<SecurityOrigin> m_securityOrigin; |
267 }; | 272 }; |
268 | 273 |
269 } // namespace WebCore | 274 } // namespace WebCore |
270 | 275 |
271 #endif // XMLHttpRequest_h | 276 #endif // XMLHttpRequest_h |
OLD | NEW |