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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 PassRefPtrWillBeRawPtr<XMLHttpRequest> XMLHttpRequest::create(ExecutionContext*
context, PassRefPtr<SecurityOrigin> securityOrigin) | 160 PassRefPtrWillBeRawPtr<XMLHttpRequest> XMLHttpRequest::create(ExecutionContext*
context, PassRefPtr<SecurityOrigin> securityOrigin) |
161 { | 161 { |
162 RefPtrWillBeRawPtr<XMLHttpRequest> xmlHttpRequest = adoptRefWillBeRefCounted
GarbageCollected(new XMLHttpRequest(context, securityOrigin)); | 162 RefPtrWillBeRawPtr<XMLHttpRequest> xmlHttpRequest = adoptRefWillBeRefCounted
GarbageCollected(new XMLHttpRequest(context, securityOrigin)); |
163 xmlHttpRequest->suspendIfNeeded(); | 163 xmlHttpRequest->suspendIfNeeded(); |
164 | 164 |
165 return xmlHttpRequest.release(); | 165 return xmlHttpRequest.release(); |
166 } | 166 } |
167 | 167 |
168 XMLHttpRequest::XMLHttpRequest(ExecutionContext* context, PassRefPtr<SecurityOri
gin> securityOrigin) | 168 XMLHttpRequest::XMLHttpRequest(ExecutionContext* context, PassRefPtr<SecurityOri
gin> securityOrigin) |
169 : ActiveDOMObject(context) | 169 : ActiveDOMObject(context) |
170 , m_async(true) | |
171 , m_includeCredentials(false) | |
172 , m_timeoutMilliseconds(0) | 170 , m_timeoutMilliseconds(0) |
173 , m_state(UNSENT) | 171 , m_state(UNSENT) |
174 , m_createdDocument(false) | |
175 , m_downloadedBlobLength(0) | 172 , m_downloadedBlobLength(0) |
176 , m_error(false) | |
177 , m_uploadEventsAllowed(true) | |
178 , m_uploadComplete(false) | |
179 , m_sameOriginRequest(true) | |
180 , m_receivedLength(0) | 173 , m_receivedLength(0) |
181 , m_lastSendLineNumber(0) | 174 , m_lastSendLineNumber(0) |
182 , m_exceptionCode(0) | 175 , m_exceptionCode(0) |
183 , m_progressEventThrottle(this) | 176 , m_progressEventThrottle(this) |
184 , m_responseTypeCode(ResponseTypeDefault) | 177 , m_responseTypeCode(ResponseTypeDefault) |
185 , m_dropProtectionRunner(this, &XMLHttpRequest::dropProtection) | 178 , m_dropProtectionRunner(this, &XMLHttpRequest::dropProtection) |
186 , m_securityOrigin(securityOrigin) | 179 , m_securityOrigin(securityOrigin) |
| 180 , m_async(true) |
| 181 , m_includeCredentials(false) |
| 182 , m_createdDocument(false) |
| 183 , m_error(false) |
| 184 , m_uploadEventsAllowed(true) |
| 185 , m_uploadComplete(false) |
| 186 , m_sameOriginRequest(true) |
187 { | 187 { |
188 initializeXMLHttpRequestStaticData(); | 188 initializeXMLHttpRequestStaticData(); |
189 #ifndef NDEBUG | 189 #ifndef NDEBUG |
190 xmlHttpRequestCounter.increment(); | 190 xmlHttpRequestCounter.increment(); |
191 #endif | 191 #endif |
192 ScriptWrappable::init(this); | 192 ScriptWrappable::init(this); |
193 } | 193 } |
194 | 194 |
195 XMLHttpRequest::~XMLHttpRequest() | 195 XMLHttpRequest::~XMLHttpRequest() |
196 { | 196 { |
(...skipping 1266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1463 { | 1463 { |
1464 visitor->trace(m_responseBlob); | 1464 visitor->trace(m_responseBlob); |
1465 visitor->trace(m_responseStream); | 1465 visitor->trace(m_responseStream); |
1466 visitor->trace(m_responseDocument); | 1466 visitor->trace(m_responseDocument); |
1467 visitor->trace(m_progressEventThrottle); | 1467 visitor->trace(m_progressEventThrottle); |
1468 visitor->trace(m_upload); | 1468 visitor->trace(m_upload); |
1469 XMLHttpRequestEventTarget::trace(visitor); | 1469 XMLHttpRequestEventTarget::trace(visitor); |
1470 } | 1470 } |
1471 | 1471 |
1472 } // namespace WebCore | 1472 } // namespace WebCore |
OLD | NEW |