Chromium Code Reviews| 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 204 // Dispatches a response ProgressEvent. | 204 // Dispatches a response ProgressEvent. |
| 205 void dispatchProgressEvent(const AtomicString&, long long, long long); | 205 void dispatchProgressEvent(const AtomicString&, long long, long long); |
| 206 // Dispatches a response ProgressEvent using values sampled from | 206 // Dispatches a response ProgressEvent using values sampled from |
| 207 // m_receivedLength and m_response. | 207 // m_receivedLength and m_response. |
| 208 void dispatchProgressEventFromSnapshot(const AtomicString&); | 208 void dispatchProgressEventFromSnapshot(const AtomicString&); |
| 209 | 209 |
| 210 // Does clean up common for all kind of didFail() call. | 210 // Does clean up common for all kind of didFail() call. |
| 211 void handleDidFailGeneric(); | 211 void handleDidFailGeneric(); |
| 212 // Handles didFail() call not caused by cancellation or timeout. | 212 // Handles didFail() call not caused by cancellation or timeout. |
| 213 void handleNetworkError(); | 213 void handleNetworkError(); |
| 214 // Handles didFail() call triggered by m_loader->cancel(). | 214 // Handles didFail() call for cancellation. |
|
sof
2014/08/12 12:24:00
"Handles didFail() call for error cancellations" ?
sof
2014/08/12 12:29:51
Hmm, scratch that - i think it is fine to leave ou
tyoshino (SeeGerritForStatus)
2014/08/12 12:34:46
not
errors of/meaning cancellation
or
cancellation
sof
2014/08/12 12:42:56
The former covers it more closely, I think, but ho
tyoshino (SeeGerritForStatus)
2014/08/12 13:48:36
np. thanks for review. Using "cancellations".
| |
| 215 // | |
| 216 // This is not for the abort() method of the XHR. abort() calls | |
|
sof
2014/08/12 12:24:00
Why mention the implementation mechanics of abort(
tyoshino (SeeGerritForStatus)
2014/08/12 12:34:46
Oh, I see. Removed!
| |
| 217 // internalAbort() which sets m_error which prevents handleDidCancel() from | |
| 218 // being called. This method handles cancellation coming from other | |
| 219 // components. For example, the ResourceLoader handling the load notifies | |
| 220 // m_loader of cancellation when the frame containing the XHR navigates | |
| 221 // away. | |
| 215 void handleDidCancel(); | 222 void handleDidCancel(); |
| 216 // Handles didFail() call for timeout. | 223 // Handles didFail() call for timeout. |
| 217 void handleDidTimeout(); | 224 void handleDidTimeout(); |
| 218 | 225 |
| 219 void handleRequestError(ExceptionCode, const AtomicString&, long long, long long); | 226 void handleRequestError(ExceptionCode, const AtomicString&, long long, long long); |
| 220 | 227 |
| 221 OwnPtrWillBeMember<XMLHttpRequestUpload> m_upload; | 228 OwnPtrWillBeMember<XMLHttpRequestUpload> m_upload; |
| 222 | 229 |
| 223 KURL m_url; | 230 KURL m_url; |
| 224 AtomicString m_method; | 231 AtomicString m_method; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 271 bool m_parsedResponse; | 278 bool m_parsedResponse; |
| 272 bool m_error; | 279 bool m_error; |
| 273 bool m_uploadEventsAllowed; | 280 bool m_uploadEventsAllowed; |
| 274 bool m_uploadComplete; | 281 bool m_uploadComplete; |
| 275 bool m_sameOriginRequest; | 282 bool m_sameOriginRequest; |
| 276 }; | 283 }; |
| 277 | 284 |
| 278 } // namespace blink | 285 } // namespace blink |
| 279 | 286 |
| 280 #endif // XMLHttpRequest_h | 287 #endif // XMLHttpRequest_h |
| OLD | NEW |