[GTK] Add WebKitCookieManager::changed signal to WebKit2 GTK+ API
authorcarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 24 Apr 2012 15:18:40 +0000 (15:18 +0000)
committercarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 24 Apr 2012 15:18:40 +0000 (15:18 +0000)
commit9cd0e6b400c791b16431d37ffc2e13efe96c7c8e
tree5a71b27032c0bd69fba11103a4ba9d22b3143ee5
parentd0dbe4c5a982a19a37ceadd6b6c05bd282cef02c
[GTK] Add WebKitCookieManager::changed signal to WebKit2 GTK+ API
https://bugs.webkit.org/show_bug.cgi?id=82598

Reviewed by Philippe Normand.

Source/WebCore:

* GNUmakefile.list.am: Add new files to compilation.
* platform/gtk/TemporaryLinkStubs.cpp: Remove stubs for
setCookieStoragePrivateBrowsingEnabled,
startObservingCookieChanges and stopObservingCookieChanges.
* platform/network/soup/CookieStorageSoup.cpp: Added.
(WebCore::setCookieStoragePrivateBrowsingEnabled):
(WebCore::soupCookiesChanged): Notify cookies changes using
platform strategies.
(WebCore::startObservingCookieChanges): Connect to changed signal
of the soup cookie jar.
(WebCore::stopObservingCookieChanges): Disconnect signals handlers
for changed signals of the soup cookie jar.

Source/WebKit2:

* UIProcess/API/gtk/WebKitCookieManager.cpp:
(webkitCookieManagerFinalize): Stop observing cookie changes.
(webkit_cookie_manager_class_init): Add
WebKitCookieManager::changed signal.
(cookiesDidChange): Emit WebKitCookieManager::changed signal.
(webkitCookieManagerCreate): Implement WKCookieManagerClient and
start observing cookie changes.
* UIProcess/API/gtk/tests/TestCookieManager.cpp:
(testCookieManagerCookiesChanged):
(beforeAll):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@115057 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/GNUmakefile.list.am
Source/WebCore/platform/gtk/TemporaryLinkStubs.cpp
Source/WebCore/platform/network/soup/CookieStorageSoup.cpp [new file with mode: 0644]
Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/gtk/WebKitCookieManager.cpp
Source/WebKit2/UIProcess/API/gtk/tests/TestCookieManager.cpp