[EFL][WK2] Move and make WKColorPickerResultListener to EFL specific interface
https://bugs.webkit.org/show_bug.cgi?id=119120

Reviewed by Gyuyoung Kim.

WKColorPickerResultListener and related files are only used in EFL since added.
Indeed, it does not work since refactored common logic for ColorPicker in WebPageProxy.

This patch moved them to EFL specfic and refactor to work well.

* CMakeLists.txt: Moved WebColorPickerResultListenerProxy.cpp to PlatformEfl.cmake.
* GNUmakefile.list.am: Removed ColorPickerResultListener related files which are only for Efl from source list.
* PlatformEfl.cmake: Added ColorPickerResultListenerProxy related files and newly added files into source list.
* UIProcess/API/APIUIClient.h:
* UIProcess/API/C/WKPage.cpp:
(WKPageSetPageUIClient):
* UIProcess/API/C/efl/WKColorPickerResultListener.cpp: Renamed from Source/WebKit2/UIProcess/API/C/WKColorPickerResultListener.cpp.
(WKColorPickerResultListenerGetTypeID):
(WKColorPickerResultListenerSetColor):
* UIProcess/API/C/efl/WKColorPickerResultListener.h: Renamed from Source/WebKit2/UIProcess/API/C/WKColorPickerResultListener.h.
* UIProcess/API/C/efl/WKViewEfl.cpp: Introduced WKColorPickerClient and setter.
(WKViewSetColorPickerClient):
* UIProcess/API/C/efl/WKViewEfl.h:
* UIProcess/API/efl/tests/test_ewk2_color_picker.cpp: Enabled test case for color picker.
(TEST_F):
* UIProcess/WebPageProxy.cpp: Removed unnecessary WebColorPickerResultListenerProxy dependency.
* UIProcess/WebPageProxy.h: Ditto.
* UIProcess/efl/PageUIClientEfl.cpp: Removed color picker callbacks of PageUIClient.
(WebKit::PageUIClientEfl::PageUIClientEfl):
* UIProcess/efl/PageUIClientEfl.h:
* UIProcess/efl/ViewClientEfl.cpp: Registered callbacks of WKColorPickerClient.
(WebKit::ViewClientEfl::showColorPicker):
(WebKit::ViewClientEfl::endColorPicker):
(WebKit::ViewClientEfl::ViewClientEfl):
(WebKit::ViewClientEfl::~ViewClientEfl):
* UIProcess/efl/ViewClientEfl.h:
* UIProcess/efl/WebColorPickerClient.cpp: Copied from Source/WebKit2/UIProcess/efl/ViewClientEfl.h.
(WebKit::WebColorPickerClient::showColorPicker):
(WebKit::WebColorPickerClient::endPicker):
* UIProcess/efl/WebColorPickerClient.h: Added.
* UIProcess/efl/WebColorPickerEfl.cpp: Copied from Source/WebKit2/UIProcess/efl/ViewClientEfl.h.
(WebKit::WebColorPickerEfl::WebColorPickerEfl):
(WebKit::WebColorPickerEfl::endPicker):
(WebKit::WebColorPickerEfl::showColorPicker):
(WebKit::WebColorPickerEfl::setSelectedColor):
(WebKit::WebColorPickerEfl::didChooseColor):
* UIProcess/efl/WebColorPickerEfl.h: Copied from Source/WebKit2/UIProcess/efl/ViewClientEfl.h.
(WebKit::WebColorPickerEfl::create):
(WebKit::WebColorPickerEfl::~WebColorPickerEfl):
* UIProcess/efl/WebColorPickerResultListenerProxy.cpp: Renamed from Source/WebKit2/UIProcess/WebColorPickerResultListenerProxy.cpp.
(WebKit::WebColorPickerResultListenerProxy::WebColorPickerResultListenerProxy):
(WebKit::WebColorPickerResultListenerProxy::~WebColorPickerResultListenerProxy):
(WebKit::WebColorPickerResultListenerProxy::invalidate):
(WebKit::WebColorPickerResultListenerProxy::setColor):
* UIProcess/efl/WebColorPickerResultListenerProxy.h: Renamed from Source/WebKit2/UIProcess/WebColorPickerResultListenerProxy.h.
(WebKit::WebColorPickerResultListenerProxy::create):
* UIProcess/efl/WebViewEfl.cpp:
(WebKit::WebViewEfl::initializeColorPickerClient):
(WebKit::WebViewEfl::createColorPicker):
* UIProcess/efl/WebViewEfl.h:
(WebKit::WebViewEfl::colorPickerClient):
* WebKit2.xcodeproj/project.pbxproj: Removed ColorPickerResultListener related files which are only for Efl from source list.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@164271 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Expose a way to clear cookies modified after a given date
https://bugs.webkit.org/show_bug.cgi?id=128845

Patch by Ricky Mondello <rmondello@apple.com> on 2014-02-17
Reviewed by Alexey Proskuryakov.

Source/WebCore:

* WebCore.exp.in: Add a symbol.
* platform/network/PlatformCookieJar.h: Declare deleteAllCookiesModifiedAfterDate.
* platform/network/cf/CookieJarCFNet.cpp:
(WebCore::deleteAllCookiesModifiedAfterDate): Add a stub.
* platform/network/curl/CookieJarCurl.cpp:
(WebCore::deleteAllCookiesModifiedAfterDate): Ditto.
* platform/network/soup/CookieJarSoup.cpp:
(WebCore::deleteAllCookiesModifiedAfterDate): Ditto.
* platform/network/mac/CookieJarMac.mm: Add a category NSHTTPCookieStorage category with the method
    used for time-based clearing so we can build on all platforms. For now, we'll check for support
    at runtime.
(WebCore::deleteAllCookiesModifiedAfterDate): Added. Without foundation API, we'll ignore the passed-in
    NetworkStorageSession.

Source/WebKit2:

* UIProcess/API/C/WKCookieManager.cpp:
(WKCookieManagerDeleteAllCookiesModifiedAfterDate): Added. Call out to the CookieManager.
* UIProcess/API/C/WKCookieManager.h: Declare WKCookieManagerDeleteAllCookiesModifiedAfterDate.
* UIProcess/WebCookieManagerProxy.cpp:
(WebKit::WebCookieManagerProxy::deleteAllCookiesModifiedAfterDate): Added. Dispatch message to the
    Network Process.
* UIProcess/WebCookieManagerProxy.h: Declare deleteAllCookiesModifiedAfterDate.
* WebProcess/Cookies/WebCookieManager.cpp:
(WebKit::WebCookieManager::deleteAllCookiesModifiedAfterDate): Added. Call out to WebCore to finish the job.
* WebProcess/Cookies/WebCookieManager.h: Declare deleteAllCookiesModifiedAfterDate.
* WebProcess/Cookies/WebCookieManager.messages.in: Add new message.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@164272 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed gtk build fix.

* GNUmakefile.list.am: Remove WebHistoryClient.cpp/h after r164230.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@164273 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Move PublicURLMansger to std::unique_ptr.
https://bugs.webkit.org/show_bug.cgi?id=128891

Patch by Sangho Kim <thomas.kim@lge.com> on 2014-02-17
Reviewed by Anders Carlsson.

Use std::unique_ptr and std::make_unique in place of PassOwnPtr and adoptPtr in the PublicURLManager

* dom/ScriptExecutionContext.h:
* html/PublicURLManager.cpp:
(WebCore::PublicURLManager::create):
* html/PublicURLManager.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@164274 268f45cc-cd09-0410-ab3c-d52691b4dbfc