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

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: Addressed #4 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 bool m_downloadingToFile;
sof 2014/09/10 14:21:39 Move this down into the bool block at the end.
tyoshino (SeeGerritForStatus) 2014/09/11 04:30:57 Done.
268 long long m_lengthDownloadedToFile;
268 269
269 RefPtr<ArrayBuffer> m_responseArrayBuffer; 270 RefPtr<ArrayBuffer> m_responseArrayBuffer;
270 271
271 // Used for onprogress tracking 272 // Used for onprogress tracking
272 long long m_receivedLength; 273 long long m_receivedLength;
273 274
274 unsigned m_lastSendLineNumber; 275 unsigned m_lastSendLineNumber;
275 String m_lastSendURL; 276 String m_lastSendURL;
276 // An exception to throw in synchronous mode. It's set when failure 277 // 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 278 // notification is received from m_loader and thrown at the end of send() if
(...skipping 13 matching lines...) Expand all
291 bool m_parsedResponse; 292 bool m_parsedResponse;
292 bool m_error; 293 bool m_error;
293 bool m_uploadEventsAllowed; 294 bool m_uploadEventsAllowed;
294 bool m_uploadComplete; 295 bool m_uploadComplete;
295 bool m_sameOriginRequest; 296 bool m_sameOriginRequest;
296 }; 297 };
297 298
298 } // namespace blink 299 } // namespace blink
299 300
300 #endif // XMLHttpRequest_h 301 #endif // XMLHttpRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698