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

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

Issue 562563003: [XHR] Accept data on didReceiveData call even if responseType is set to Blob (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 ResourceResponse m_response; 257 ResourceResponse m_response;
258 String m_finalResponseCharset; 258 String m_finalResponseCharset;
259 259
260 OwnPtr<TextResourceDecoder> m_decoder; 260 OwnPtr<TextResourceDecoder> m_decoder;
261 261
262 ScriptString m_responseText; 262 ScriptString m_responseText;
263 RefPtrWillBeMember<Document> m_responseDocument; 263 RefPtrWillBeMember<Document> m_responseDocument;
264 RefPtrWillBeMember<DocumentParser> m_responseDocumentParser; 264 RefPtrWillBeMember<DocumentParser> m_responseDocumentParser;
265 265
266 RefPtr<SharedBuffer> m_binaryResponseBuilder; 266 RefPtr<SharedBuffer> m_binaryResponseBuilder;
267 long long m_downloadedBlobLength; 267 long long m_lengthDownloadedToFile;
268 268
269 RefPtr<ArrayBuffer> m_responseArrayBuffer; 269 RefPtr<ArrayBuffer> m_responseArrayBuffer;
270 270
271 // Used for onprogress tracking 271 // Used for onprogress tracking
272 long long m_receivedLength; 272 long long m_receivedLength;
273 273
274 unsigned m_lastSendLineNumber; 274 unsigned m_lastSendLineNumber;
275 String m_lastSendURL; 275 String m_lastSendURL;
276 // An exception to throw in synchronous mode. It's set when failure 276 // An exception to throw in synchronous mode. It's set when failure
277 // notification is received from m_loader and thrown at the end of send() if 277 // notification is received from m_loader and thrown at the end of send() if
278 // any. 278 // any.
279 ExceptionCode m_exceptionCode; 279 ExceptionCode m_exceptionCode;
280 280
281 XMLHttpRequestProgressEventThrottle m_progressEventThrottle; 281 XMLHttpRequestProgressEventThrottle m_progressEventThrottle;
282 282
283 // An enum corresponding to the allowed string values for the responseType a ttribute. 283 // An enum corresponding to the allowed string values for the responseType a ttribute.
284 ResponseTypeCode m_responseTypeCode; 284 ResponseTypeCode m_responseTypeCode;
285 RefPtr<SecurityOrigin> m_securityOrigin; 285 RefPtr<SecurityOrigin> m_securityOrigin;
286 286
287 bool m_async; 287 bool m_async;
288 bool m_includeCredentials; 288 bool m_includeCredentials;
289 // Used to skip m_responseDocument creation if it's done previously. We need 289 // Used to skip m_responseDocument creation if it's done previously. We need
290 // this separate flag since m_responseDocument can be 0 for some cases. 290 // this separate flag since m_responseDocument can be 0 for some cases.
291 bool m_parsedResponse; 291 bool m_parsedResponse;
292 bool m_error; 292 bool m_error;
293 bool m_uploadEventsAllowed; 293 bool m_uploadEventsAllowed;
294 bool m_uploadComplete; 294 bool m_uploadComplete;
295 bool m_sameOriginRequest; 295 bool m_sameOriginRequest;
296 // True iff the ongoing resource loading is using the downloadToFile
297 // option.
298 bool m_downloadingToFile;
296 }; 299 };
297 300
298 } // namespace blink 301 } // namespace blink
299 302
300 #endif // XMLHttpRequest_h 303 #endif // XMLHttpRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698