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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 void clearRequest(); | 216 void clearRequest(); |
217 | 217 |
218 void createRequest(PassRefPtr<FormData>, ExceptionState&); | 218 void createRequest(PassRefPtr<FormData>, ExceptionState&); |
219 | 219 |
220 // Dispatches a response ProgressEvent. | 220 // Dispatches a response ProgressEvent. |
221 void dispatchProgressEvent(const AtomicString&, long long, long long); | 221 void dispatchProgressEvent(const AtomicString&, long long, long long); |
222 // Dispatches a response ProgressEvent using values sampled from | 222 // Dispatches a response ProgressEvent using values sampled from |
223 // m_receivedLength and m_response. | 223 // m_receivedLength and m_response. |
224 void dispatchProgressEventFromSnapshot(const AtomicString&); | 224 void dispatchProgressEventFromSnapshot(const AtomicString&); |
225 | 225 |
226 // Does clean up common for all kind of didFail() call. | |
227 void handleDidFailGeneric(); | |
228 // Handles didFail() call not caused by cancellation or timeout. | 226 // Handles didFail() call not caused by cancellation or timeout. |
229 void handleNetworkError(); | 227 void handleNetworkError(); |
230 // Handles didFail() call for cancellations. For example, the | 228 // Handles didFail() call for cancellations. For example, the |
231 // ResourceLoader handling the load notifies m_loader of an error | 229 // ResourceLoader handling the load notifies m_loader of an error |
232 // cancellation when the frame containing the XHR navigates away. | 230 // cancellation when the frame containing the XHR navigates away. |
233 void handleDidCancel(); | 231 void handleDidCancel(); |
234 // Handles didFail() call for timeout. | 232 // Handles didFail() call for timeout. |
235 void handleDidTimeout(); | 233 void handleDidTimeout(); |
236 | 234 |
237 void handleRequestError(ExceptionCode, const AtomicString&, long long, long
long); | 235 void handleRequestError(ExceptionCode, const AtomicString&, long long, long
long); |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 bool m_parsedResponse; | 289 bool m_parsedResponse; |
292 bool m_error; | 290 bool m_error; |
293 bool m_uploadEventsAllowed; | 291 bool m_uploadEventsAllowed; |
294 bool m_uploadComplete; | 292 bool m_uploadComplete; |
295 bool m_sameOriginRequest; | 293 bool m_sameOriginRequest; |
296 }; | 294 }; |
297 | 295 |
298 } // namespace blink | 296 } // namespace blink |
299 | 297 |
300 #endif // XMLHttpRequest_h | 298 #endif // XMLHttpRequest_h |
OLD | NEW |