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 |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 | 195 |
196 XMLHttpRequest* XMLHttpRequest::create(ExecutionContext* context) | 196 XMLHttpRequest* XMLHttpRequest::create(ExecutionContext* context) |
197 { | 197 { |
198 XMLHttpRequest* xmlHttpRequest = new XMLHttpRequest(context, nullptr); | 198 XMLHttpRequest* xmlHttpRequest = new XMLHttpRequest(context, nullptr); |
199 xmlHttpRequest->suspendIfNeeded(); | 199 xmlHttpRequest->suspendIfNeeded(); |
200 | 200 |
201 return xmlHttpRequest; | 201 return xmlHttpRequest; |
202 } | 202 } |
203 | 203 |
204 XMLHttpRequest::XMLHttpRequest(ExecutionContext* context, PassRefPtr<SecurityOri
gin> isolatedWorldSecurityOrigin) | 204 XMLHttpRequest::XMLHttpRequest(ExecutionContext* context, PassRefPtr<SecurityOri
gin> isolatedWorldSecurityOrigin) |
205 : ActiveDOMObject(context) | 205 : ActiveScriptWrappable(this) |
| 206 , ActiveDOMObject(context) |
206 , m_timeoutMilliseconds(0) | 207 , m_timeoutMilliseconds(0) |
207 , m_state(UNSENT) | 208 , m_state(UNSENT) |
208 , m_lengthDownloadedToFile(0) | 209 , m_lengthDownloadedToFile(0) |
209 , m_receivedLength(0) | 210 , m_receivedLength(0) |
210 , m_exceptionCode(0) | 211 , m_exceptionCode(0) |
211 , m_progressEventThrottle(XMLHttpRequestProgressEventThrottle::create(this)) | 212 , m_progressEventThrottle(XMLHttpRequestProgressEventThrottle::create(this)) |
212 , m_responseTypeCode(ResponseTypeDefault) | 213 , m_responseTypeCode(ResponseTypeDefault) |
213 , m_isolatedWorldSecurityOrigin(isolatedWorldSecurityOrigin) | 214 , m_isolatedWorldSecurityOrigin(isolatedWorldSecurityOrigin) |
214 , m_eventDispatchRecursionLevel(0) | 215 , m_eventDispatchRecursionLevel(0) |
215 , m_async(true) | 216 , m_async(true) |
(...skipping 1486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1702 visitor->trace(m_responseDocumentParser); | 1703 visitor->trace(m_responseDocumentParser); |
1703 visitor->trace(m_progressEventThrottle); | 1704 visitor->trace(m_progressEventThrottle); |
1704 visitor->trace(m_upload); | 1705 visitor->trace(m_upload); |
1705 visitor->trace(m_blobLoader); | 1706 visitor->trace(m_blobLoader); |
1706 XMLHttpRequestEventTarget::trace(visitor); | 1707 XMLHttpRequestEventTarget::trace(visitor); |
1707 DocumentParserClient::trace(visitor); | 1708 DocumentParserClient::trace(visitor); |
1708 ActiveDOMObject::trace(visitor); | 1709 ActiveDOMObject::trace(visitor); |
1709 } | 1710 } |
1710 | 1711 |
1711 } // namespace blink | 1712 } // namespace blink |
OLD | NEW |