| 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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 void handleNetworkError(); | 247 void handleNetworkError(); |
| 248 // Handles didFail() call for cancellations. For example, the | 248 // Handles didFail() call for cancellations. For example, the |
| 249 // ResourceLoader handling the load notifies m_loader of an error | 249 // ResourceLoader handling the load notifies m_loader of an error |
| 250 // cancellation when the frame containing the XHR navigates away. | 250 // cancellation when the frame containing the XHR navigates away. |
| 251 void handleDidCancel(); | 251 void handleDidCancel(); |
| 252 // Handles didFail() call for timeout. | 252 // Handles didFail() call for timeout. |
| 253 void handleDidTimeout(); | 253 void handleDidTimeout(); |
| 254 | 254 |
| 255 void handleRequestError(ExceptionCode, const AtomicString&, long long, long
long); | 255 void handleRequestError(ExceptionCode, const AtomicString&, long long, long
long); |
| 256 | 256 |
| 257 XMLHttpRequestProgressEventThrottle& progressEventThrottle(); |
| 258 |
| 257 OwnPtrWillBeMember<XMLHttpRequestUpload> m_upload; | 259 OwnPtrWillBeMember<XMLHttpRequestUpload> m_upload; |
| 258 | 260 |
| 259 KURL m_url; | 261 KURL m_url; |
| 260 AtomicString m_method; | 262 AtomicString m_method; |
| 261 HTTPHeaderMap m_requestHeaders; | 263 HTTPHeaderMap m_requestHeaders; |
| 262 // Not converted to ASCII lowercase. Must be lowered later or compared | 264 // Not converted to ASCII lowercase. Must be lowered later or compared |
| 263 // using case insensitive comparison functions if needed. | 265 // using case insensitive comparison functions if needed. |
| 264 AtomicString m_mimeTypeOverride; | 266 AtomicString m_mimeTypeOverride; |
| 265 unsigned long m_timeoutMilliseconds; | 267 unsigned long m_timeoutMilliseconds; |
| 266 PersistentWillBeMember<Blob> m_responseBlob; | 268 PersistentWillBeMember<Blob> m_responseBlob; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 286 RefPtr<DOMArrayBuffer> m_responseArrayBuffer; | 288 RefPtr<DOMArrayBuffer> m_responseArrayBuffer; |
| 287 | 289 |
| 288 // Used for onprogress tracking | 290 // Used for onprogress tracking |
| 289 long long m_receivedLength; | 291 long long m_receivedLength; |
| 290 | 292 |
| 291 // An exception to throw in synchronous mode. It's set when failure | 293 // An exception to throw in synchronous mode. It's set when failure |
| 292 // notification is received from m_loader and thrown at the end of send() if | 294 // notification is received from m_loader and thrown at the end of send() if |
| 293 // any. | 295 // any. |
| 294 ExceptionCode m_exceptionCode; | 296 ExceptionCode m_exceptionCode; |
| 295 | 297 |
| 296 XMLHttpRequestProgressEventThrottle m_progressEventThrottle; | 298 OwnPtrWillBeMember<XMLHttpRequestProgressEventThrottle> m_progressEventThrot
tle; |
| 297 | 299 |
| 298 // An enum corresponding to the allowed string values for the responseType a
ttribute. | 300 // An enum corresponding to the allowed string values for the responseType a
ttribute. |
| 299 ResponseTypeCode m_responseTypeCode; | 301 ResponseTypeCode m_responseTypeCode; |
| 300 RefPtr<SecurityOrigin> m_securityOrigin; | 302 RefPtr<SecurityOrigin> m_securityOrigin; |
| 301 | 303 |
| 302 // This blob loader will be used if |m_downloadingToFile| is true and | 304 // This blob loader will be used if |m_downloadingToFile| is true and |
| 303 // |m_responseTypeCode| is NOT ResponseTypeBlob. | 305 // |m_responseTypeCode| is NOT ResponseTypeBlob. |
| 304 PersistentWillBeMember<BlobLoader> m_blobLoader; | 306 PersistentWillBeMember<BlobLoader> m_blobLoader; |
| 305 | 307 |
| 306 // Positive if we are dispatching events. | 308 // Positive if we are dispatching events. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 319 bool m_sameOriginRequest; | 321 bool m_sameOriginRequest; |
| 320 // True iff the ongoing resource loading is using the downloadToFile | 322 // True iff the ongoing resource loading is using the downloadToFile |
| 321 // option. | 323 // option. |
| 322 bool m_downloadingToFile; | 324 bool m_downloadingToFile; |
| 323 bool m_responseTextOverflow; | 325 bool m_responseTextOverflow; |
| 324 }; | 326 }; |
| 325 | 327 |
| 326 } // namespace blink | 328 } // namespace blink |
| 327 | 329 |
| 328 #endif // XMLHttpRequest_h | 330 #endif // XMLHttpRequest_h |
| OLD | NEW |