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

Side by Side Diff: third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.h

Issue 2427553002: Fix XHR's logic to determine whether or not to dispatch upload progress events
Patch Set: a Created 4 years, 2 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
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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 // This is an integer specifying the recursion level rather than a boolean 325 // This is an integer specifying the recursion level rather than a boolean
326 // because in some cases we have recursive dispatching. 326 // because in some cases we have recursive dispatching.
327 int m_eventDispatchRecursionLevel; 327 int m_eventDispatchRecursionLevel;
328 328
329 bool m_async; 329 bool m_async;
330 bool m_includeCredentials; 330 bool m_includeCredentials;
331 // Used to skip m_responseDocument creation if it's done previously. We need 331 // Used to skip m_responseDocument creation if it's done previously. We need
332 // this separate flag since m_responseDocument can be 0 for some cases. 332 // this separate flag since m_responseDocument can be 0 for some cases.
333 bool m_parsedResponse; 333 bool m_parsedResponse;
334 bool m_error; 334 bool m_error;
335 bool m_uploadEventsAllowed; 335 bool m_uploadListenerFlag;
336 bool m_uploadComplete; 336 bool m_uploadCompleteFlag;
337 bool m_sameOriginRequest; 337 bool m_sameOriginRequest;
338 // True iff the ongoing resource loading is using the downloadToFile 338 // True iff the ongoing resource loading is using the downloadToFile
339 // option. 339 // option.
340 bool m_downloadingToFile; 340 bool m_downloadingToFile;
341 bool m_responseTextOverflow; 341 bool m_responseTextOverflow;
342 }; 342 };
343 343
344 std::ostream& operator<<(std::ostream&, const XMLHttpRequest*); 344 std::ostream& operator<<(std::ostream&, const XMLHttpRequest*);
345 345
346 } // namespace blink 346 } // namespace blink
347 347
348 #endif // XMLHttpRequest_h 348 #endif // XMLHttpRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698