Index: Source/WebCore/loader/SubresourceLoader.cpp |
=================================================================== |
--- Source/WebCore/loader/SubresourceLoader.cpp (revision 86689) |
+++ Source/WebCore/loader/SubresourceLoader.cpp (working copy) |
@@ -60,7 +60,7 @@ |
#endif |
} |
-PassRefPtr<SubresourceLoader> SubresourceLoader::create(Frame* frame, SubresourceLoaderClient* client, const ResourceRequest& request, SecurityCheckPolicy securityCheck, bool sendResourceLoadCallbacks, bool shouldContentSniff, const String& optionalOutgoingReferrer) |
+PassRefPtr<SubresourceLoader> SubresourceLoader::create(Frame* frame, SubresourceLoaderClient* client, const ResourceRequest& request, SecurityCheckPolicy securityCheck, bool sendResourceLoadCallbacks, bool shouldContentSniff, const String& optionalOutgoingReferrer, bool shouldBufferData) |
{ |
if (!frame) |
return 0; |
@@ -95,6 +95,7 @@ |
fl->addExtraFieldsToSubresourceRequest(newRequest); |
RefPtr<SubresourceLoader> subloader(adoptRef(new SubresourceLoader(frame, client, sendResourceLoadCallbacks, shouldContentSniff))); |
+ subloader->setShouldBufferData(shouldBufferData); |
subloader->documentLoader()->addSubresourceLoader(subloader.get()); |
if (!subloader->init(newRequest)) |
return 0; |