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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 void handleDidTimeout(); | 214 void handleDidTimeout(); |
215 | 215 |
216 void handleRequestError(ExceptionCode, const AtomicString&, long long, long
long); | 216 void handleRequestError(ExceptionCode, const AtomicString&, long long, long
long); |
217 | 217 |
218 OwnPtrWillBeMember<XMLHttpRequestUpload> m_upload; | 218 OwnPtrWillBeMember<XMLHttpRequestUpload> m_upload; |
219 | 219 |
220 KURL m_url; | 220 KURL m_url; |
221 AtomicString m_method; | 221 AtomicString m_method; |
222 HTTPHeaderMap m_requestHeaders; | 222 HTTPHeaderMap m_requestHeaders; |
223 AtomicString m_mimeTypeOverride; | 223 AtomicString m_mimeTypeOverride; |
224 bool m_async; | |
225 bool m_includeCredentials; | |
226 unsigned long m_timeoutMilliseconds; | 224 unsigned long m_timeoutMilliseconds; |
227 RefPtrWillBeMember<Blob> m_responseBlob; | 225 RefPtrWillBeMember<Blob> m_responseBlob; |
228 RefPtrWillBeMember<Stream> m_responseStream; | 226 RefPtrWillBeMember<Stream> m_responseStream; |
229 | 227 |
230 RefPtr<ThreadableLoader> m_loader; | 228 RefPtr<ThreadableLoader> m_loader; |
231 State m_state; | 229 State m_state; |
232 | 230 |
233 ResourceResponse m_response; | 231 ResourceResponse m_response; |
234 String m_responseEncoding; | 232 String m_responseEncoding; |
235 | 233 |
236 OwnPtr<TextResourceDecoder> m_decoder; | 234 OwnPtr<TextResourceDecoder> m_decoder; |
237 | 235 |
238 ScriptString m_responseText; | 236 ScriptString m_responseText; |
239 // Used to skip m_responseDocument creation if it's done previously. We need | |
240 // this separate flag since m_responseDocument can be 0 for some cases. | |
241 bool m_createdDocument; | |
242 RefPtrWillBeMember<Document> m_responseDocument; | 237 RefPtrWillBeMember<Document> m_responseDocument; |
243 | 238 |
244 RefPtr<SharedBuffer> m_binaryResponseBuilder; | 239 RefPtr<SharedBuffer> m_binaryResponseBuilder; |
245 long long m_downloadedBlobLength; | 240 long long m_downloadedBlobLength; |
246 | 241 |
247 RefPtr<ArrayBuffer> m_responseArrayBuffer; | 242 RefPtr<ArrayBuffer> m_responseArrayBuffer; |
248 | 243 |
249 bool m_error; | |
250 | |
251 bool m_uploadEventsAllowed; | |
252 bool m_uploadComplete; | |
253 | |
254 bool m_sameOriginRequest; | |
255 | 244 |
256 // Used for onprogress tracking | 245 // Used for onprogress tracking |
257 long long m_receivedLength; | 246 long long m_receivedLength; |
258 | 247 |
259 unsigned m_lastSendLineNumber; | 248 unsigned m_lastSendLineNumber; |
260 String m_lastSendURL; | 249 String m_lastSendURL; |
261 // An exception to throw in synchronous mode. It's set when failure | 250 // An exception to throw in synchronous mode. It's set when failure |
262 // notification is received from m_loader and thrown at the end of send() if | 251 // notification is received from m_loader and thrown at the end of send() if |
263 // any. | 252 // any. |
264 ExceptionCode m_exceptionCode; | 253 ExceptionCode m_exceptionCode; |
265 | 254 |
266 XMLHttpRequestProgressEventThrottle m_progressEventThrottle; | 255 XMLHttpRequestProgressEventThrottle m_progressEventThrottle; |
267 | 256 |
268 // An enum corresponding to the allowed string values for the responseType a
ttribute. | 257 // An enum corresponding to the allowed string values for the responseType a
ttribute. |
269 ResponseTypeCode m_responseTypeCode; | 258 ResponseTypeCode m_responseTypeCode; |
270 AsyncMethodRunner<XMLHttpRequest> m_dropProtectionRunner; | 259 AsyncMethodRunner<XMLHttpRequest> m_dropProtectionRunner; |
271 RefPtr<SecurityOrigin> m_securityOrigin; | 260 RefPtr<SecurityOrigin> m_securityOrigin; |
| 261 |
| 262 bool m_async; |
| 263 bool m_includeCredentials; |
| 264 // Used to skip m_responseDocument creation if it's done previously. We need |
| 265 // this separate flag since m_responseDocument can be 0 for some cases. |
| 266 bool m_createdDocument; |
| 267 bool m_error; |
| 268 bool m_uploadEventsAllowed; |
| 269 bool m_uploadComplete; |
| 270 bool m_sameOriginRequest; |
272 }; | 271 }; |
273 | 272 |
274 } // namespace WebCore | 273 } // namespace WebCore |
275 | 274 |
276 #endif // XMLHttpRequest_h | 275 #endif // XMLHttpRequest_h |
OLD | NEW |