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

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

Issue 2461173002: Disable memory cache for ArrayBuffer XHRs (Closed)
Patch Set: Created 4 years, 1 month 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 | no next file » | 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) 2004, 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2005-2007 Alexey Proskuryakov <ap@webkit.org> 3 * Copyright (C) 2005-2007 Alexey Proskuryakov <ap@webkit.org>
4 * Copyright (C) 2007, 2008 Julien Chaffraix <jchaffraix@webkit.org> 4 * Copyright (C) 2007, 2008 Julien Chaffraix <jchaffraix@webkit.org>
5 * Copyright (C) 2008, 2011 Google Inc. All rights reserved. 5 * Copyright (C) 2008, 2011 Google Inc. All rights reserved.
6 * Copyright (C) 2012 Intel Corporation 6 * Copyright (C) 2012 Intel Corporation
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public 9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after
1033 resourceLoaderOptions.securityOrigin = getSecurityOrigin(); 1033 resourceLoaderOptions.securityOrigin = getSecurityOrigin();
1034 1034
1035 // When responseType is set to "blob", we redirect the downloaded data to a 1035 // When responseType is set to "blob", we redirect the downloaded data to a
1036 // file-handle directly. 1036 // file-handle directly.
1037 m_downloadingToFile = getResponseTypeCode() == ResponseTypeBlob; 1037 m_downloadingToFile = getResponseTypeCode() == ResponseTypeBlob;
1038 if (m_downloadingToFile) { 1038 if (m_downloadingToFile) {
1039 request.setDownloadToFile(true); 1039 request.setDownloadToFile(true);
1040 resourceLoaderOptions.dataBufferingPolicy = DoNotBufferData; 1040 resourceLoaderOptions.dataBufferingPolicy = DoNotBufferData;
1041 } 1041 }
1042 1042
1043 if (getResponseTypeCode() == ResponseTypeArrayBuffer) {
1044 resourceLoaderOptions.dataBufferingPolicy = DoNotBufferData;
1045 }
1046
1043 m_exceptionCode = 0; 1047 m_exceptionCode = 0;
1044 m_error = false; 1048 m_error = false;
1045 1049
1046 if (m_async) { 1050 if (m_async) {
1047 UseCounter::count(&executionContext, 1051 UseCounter::count(&executionContext,
1048 UseCounter::XMLHttpRequestAsynchronous); 1052 UseCounter::XMLHttpRequestAsynchronous);
1049 if (m_upload) 1053 if (m_upload)
1050 request.setReportUploadProgress(true); 1054 request.setReportUploadProgress(true);
1051 1055
1052 DCHECK(!m_loader); 1056 DCHECK(!m_loader);
(...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after
1875 visitor->traceWrappers(m_responseDocument); 1879 visitor->traceWrappers(m_responseDocument);
1876 visitor->traceWrappers(m_responseArrayBuffer); 1880 visitor->traceWrappers(m_responseArrayBuffer);
1877 XMLHttpRequestEventTarget::traceWrappers(visitor); 1881 XMLHttpRequestEventTarget::traceWrappers(visitor);
1878 } 1882 }
1879 1883
1880 std::ostream& operator<<(std::ostream& ostream, const XMLHttpRequest* xhr) { 1884 std::ostream& operator<<(std::ostream& ostream, const XMLHttpRequest* xhr) {
1881 return ostream << "XMLHttpRequest " << static_cast<const void*>(xhr); 1885 return ostream << "XMLHttpRequest " << static_cast<const void*>(xhr);
1882 } 1886 }
1883 1887
1884 } // namespace blink 1888 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698