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

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

Issue 942433003: Protect XHR's wrapper while dispatching event. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « no previous file | Source/core/xmlhttprequest/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 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 XMLHttpRequestProgressEventThrottle m_progressEventThrottle; 288 XMLHttpRequestProgressEventThrottle m_progressEventThrottle;
289 289
290 // An enum corresponding to the allowed string values for the responseType a ttribute. 290 // An enum corresponding to the allowed string values for the responseType a ttribute.
291 ResponseTypeCode m_responseTypeCode; 291 ResponseTypeCode m_responseTypeCode;
292 RefPtr<SecurityOrigin> m_securityOrigin; 292 RefPtr<SecurityOrigin> m_securityOrigin;
293 293
294 // This blob loader will be used if |m_downloadingToFile| is true and 294 // This blob loader will be used if |m_downloadingToFile| is true and
295 // |m_responseTypeCode| is NOT ResponseTypeBlob. 295 // |m_responseTypeCode| is NOT ResponseTypeBlob.
296 OwnPtrWillBeMember<BlobLoader> m_blobLoader; 296 OwnPtrWillBeMember<BlobLoader> m_blobLoader;
297 297
298 // Positive if we are dispatching events.
299 // This is an integer specifying the recursion level rather than a boolean
300 // because in some cases we have recursive dispatching.
301 int m_eventDispatchRecursionLevel;
302
298 bool m_async; 303 bool m_async;
299 bool m_includeCredentials; 304 bool m_includeCredentials;
300 // Used to skip m_responseDocument creation if it's done previously. We need 305 // Used to skip m_responseDocument creation if it's done previously. We need
301 // this separate flag since m_responseDocument can be 0 for some cases. 306 // this separate flag since m_responseDocument can be 0 for some cases.
302 bool m_parsedResponse; 307 bool m_parsedResponse;
303 bool m_error; 308 bool m_error;
304 bool m_uploadEventsAllowed; 309 bool m_uploadEventsAllowed;
305 bool m_uploadComplete; 310 bool m_uploadComplete;
306 bool m_sameOriginRequest; 311 bool m_sameOriginRequest;
307 // True iff the ongoing resource loading is using the downloadToFile 312 // True iff the ongoing resource loading is using the downloadToFile
308 // option. 313 // option.
309 bool m_downloadingToFile; 314 bool m_downloadingToFile;
310 bool m_responseTextOverflow; 315 bool m_responseTextOverflow;
311 }; 316 };
312 317
313 } // namespace blink 318 } // namespace blink
314 319
315 #endif // XMLHttpRequest_h 320 #endif // XMLHttpRequest_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/xmlhttprequest/XMLHttpRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698