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

Unified Diff: Source/WebCore/platform/network/mac/ResourceHandleMac.mm

Issue 12090050: Revert 138962 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1397/
Patch Set: Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: Source/WebCore/platform/network/mac/ResourceHandleMac.mm
===================================================================
--- Source/WebCore/platform/network/mac/ResourceHandleMac.mm (revision 141117)
+++ Source/WebCore/platform/network/mac/ResourceHandleMac.mm (working copy)
@@ -357,6 +357,19 @@
return false;
}
+bool ResourceHandle::willLoadFromCache(ResourceRequest& request, Frame*)
+{
+ request.setCachePolicy(ReturnCacheDataDontLoad);
+ NSURLResponse *nsURLResponse = nil;
+ BEGIN_BLOCK_OBJC_EXCEPTIONS;
+
+ [NSURLConnection sendSynchronousRequest:request.nsURLRequest() returningResponse:&nsURLResponse error:nil];
+
+ END_BLOCK_OBJC_EXCEPTIONS;
+
+ return nsURLResponse;
+}
+
CFStringRef ResourceHandle::synchronousLoadRunLoopMode()
{
return CFSTR("WebCoreSynchronousLoaderRunLoopMode");
« no previous file with comments | « Source/WebCore/platform/network/curl/ResourceHandleCurl.cpp ('k') | Source/WebCore/platform/network/qt/ResourceHandleQt.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698