[Cocoa] Expose a way to set the cookie accept policy
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Mar 2014 18:38:31 +0000 (18:38 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Mar 2014 18:38:31 +0000 (18:38 +0000)
commit648f312f4e87b7b79baa792480c20cf7113b1bf0
tree59340db84fa7f8e04e17ce3943e524766ebba7db
parent27ecdf39caa22851c10838d8dc2572ef3d4fd657
[Cocoa] Expose a way to set the cookie accept policy
https://bugs.webkit.org/show_bug.cgi?id=130251

Reviewed by Anders Carlsson.

* UIProcess/API/Cocoa/WKProcessPool.mm:
(toHTTPCookieAcceptPolicy): Added a helper function that maps from NSHTTPCookieAcceptPolicy
values to WebKit::HTTPCookieAcceptPolicy values.
(-[WKProcessPool _setCookieAcceptPolicy:]): Added. Calls
WebCookieManagerProxy::setHTTPCookieAcceptPolicy.
* UIProcess/API/Cocoa/WKProcessPoolPrivate.h: Declared new method.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@165632 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/Cocoa/WKProcessPool.mm
Source/WebKit2/UIProcess/API/Cocoa/WKProcessPoolPrivate.h