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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 bool internalAbort(DropProtection = DropProtectionSync); | 180 bool internalAbort(DropProtection = DropProtectionSync); |
181 // Clears variables holding response header and body data. | 181 // Clears variables holding response header and body data. |
182 void clearResponse(); | 182 void clearResponse(); |
183 void clearRequest(); | 183 void clearRequest(); |
184 | 184 |
185 void createRequest(ExceptionState&); | 185 void createRequest(ExceptionState&); |
186 | 186 |
187 // Dispatches an event of the specified type to m_upload and | 187 // Dispatches an event of the specified type to m_upload and |
188 // m_progressEventThrottle. | 188 // m_progressEventThrottle. |
189 void dispatchEventAndLoadEnd(const AtomicString&); | 189 void dispatchEventAndLoadEnd(const AtomicString&); |
| 190 |
| 191 void dispatchThrottledProgressEvent(); |
| 192 |
190 // Does clean up common for all kind of didFail() call. | 193 // Does clean up common for all kind of didFail() call. |
191 void handleDidFailGeneric(); | 194 void handleDidFailGeneric(); |
192 // Handles didFail() call not caused by cancellation or timeout. | 195 // Handles didFail() call not caused by cancellation or timeout. |
193 void handleNetworkError(); | 196 void handleNetworkError(); |
194 // Handles didFail() call triggered by m_loader->cancel(). | 197 // Handles didFail() call triggered by m_loader->cancel(). |
195 void handleDidCancel(); | 198 void handleDidCancel(); |
196 // Handles didFail() call for timeout. | 199 // Handles didFail() call for timeout. |
197 void handleDidTimeout(); | 200 void handleDidTimeout(); |
198 | 201 |
199 OwnPtr<XMLHttpRequestUpload> m_upload; | 202 OwnPtr<XMLHttpRequestUpload> m_upload; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 | 250 |
248 // An enum corresponding to the allowed string values for the responseType a
ttribute. | 251 // An enum corresponding to the allowed string values for the responseType a
ttribute. |
249 ResponseTypeCode m_responseTypeCode; | 252 ResponseTypeCode m_responseTypeCode; |
250 AsyncMethodRunner<XMLHttpRequest> m_dropProtectionRunner; | 253 AsyncMethodRunner<XMLHttpRequest> m_dropProtectionRunner; |
251 RefPtr<SecurityOrigin> m_securityOrigin; | 254 RefPtr<SecurityOrigin> m_securityOrigin; |
252 }; | 255 }; |
253 | 256 |
254 } // namespace WebCore | 257 } // namespace WebCore |
255 | 258 |
256 #endif // XMLHttpRequest_h | 259 #endif // XMLHttpRequest_h |
OLD | NEW |