Make adjustMIMETypeIfNecessary use CFNetwork directly
[WebKit-https.git] / Source / WebCore / ChangeLog
index 446992a..189f337 100644 (file)
@@ -1,3 +1,28 @@
+2011-03-13  Pratik Solanki  <psolanki@apple.com>
+
+        Reviewed by Brady Eidson.
+
+        Make adjustMIMETypeIfNecessary use CFNetwork directly
+        https://bugs.webkit.org/show_bug.cgi?id=55912
+
+        Convert category method [NSURLResponse adjustMIMETypeIfNecessary] to C function
+        WebCore::adjustMIMETypeIfNecessary() that takes a CFURLResponseRef and is functionally
+        identical.
+
+        Testing is covered by existing LayoutTests.
+
+        * WebCore.exp.in:
+        * platform/mac/WebCoreSystemInterface.h:
+        * platform/mac/WebCoreSystemInterface.mm:
+        * platform/network/mac/ResourceHandleMac.mm:
+        (-[WebCoreResourceHandleAsDelegate connection:didReceiveResponse:]):
+        * platform/network/mac/WebCoreURLResponse.h:
+        * platform/network/mac/WebCoreURLResponse.mm:
+        (WebCore::createBinaryExtensionsSet):
+        (WebCore::createExtensionToMIMETypeMap):
+        (WebCore::mimeTypeFromUTITree):
+        (WebCore::adjustMIMETypeIfNecessary):
+
 2011-03-13  Jeremy Moskovich  <jeremy@chromium.org>
 
         Reviewed by Dimitri Glazkov.