Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: Source/core/xml/XMLHttpRequest.h

Issue 490083002: [XHR] Move the code to clear variables to internalAbort() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/xml/XMLHttpRequest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/core/xml/XMLHttpRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698