Title: [177458] trunk/Source/WebCore
Revision
177458
Author
[email protected]
Date
2014-12-17 13:15:41 -0800 (Wed, 17 Dec 2014)

Log Message

[Curl] Compile error, setWasCached method has been removed.
https://bugs.webkit.org/show_bug.cgi?id=139737

Patch by [email protected] <[email protected]> on 2014-12-17
Reviewed by Alex Christensen.

The ResourceResponseBase::setWasCached() method has been replaced
with ResourceResponseBase::setSource().

* platform/network/curl/CurlCacheEntry.cpp:
(WebCore::CurlCacheEntry::setResponseFromCachedHeaders):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (177457 => 177458)


--- trunk/Source/WebCore/ChangeLog	2014-12-17 21:08:28 UTC (rev 177457)
+++ trunk/Source/WebCore/ChangeLog	2014-12-17 21:15:41 UTC (rev 177458)
@@ -1,3 +1,16 @@
+2014-12-17  [email protected]  <[email protected]>
+
+        [Curl] Compile error, setWasCached method has been removed.
+        https://bugs.webkit.org/show_bug.cgi?id=139737
+
+        Reviewed by Alex Christensen.
+
+        The ResourceResponseBase::setWasCached() method has been replaced
+        with ResourceResponseBase::setSource().
+
+        * platform/network/curl/CurlCacheEntry.cpp:
+        (WebCore::CurlCacheEntry::setResponseFromCachedHeaders):
+
 2014-12-17  Chris Dumez  <[email protected]>
 
         [iOS] Make it possible to toggle FeatureCounter support at runtime

Modified: trunk/Source/WebCore/platform/network/curl/CurlCacheEntry.cpp (177457 => 177458)


--- trunk/Source/WebCore/platform/network/curl/CurlCacheEntry.cpp	2014-12-17 21:08:28 UTC (rev 177457)
+++ trunk/Source/WebCore/platform/network/curl/CurlCacheEntry.cpp	2014-12-17 21:15:41 UTC (rev 177458)
@@ -174,7 +174,7 @@
 void CurlCacheEntry::setResponseFromCachedHeaders(ResourceResponse& response)
 {
     response.setHTTPStatusCode(304);
-    response.setWasCached(true);
+    response.setSource(ResourceResponseBase::Source::DiskCache);
 
     // Integrate the headers in the response with the cached ones.
     HTTPHeaderMap::const_iterator it = m_cachedResponse.httpHeaderFields().begin();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to