CookieStorageSoup.cpp [plain text]
#include "config.h"
#include "CookieStorage.h"
#include "CookieJarSoup.h"
#include "NotImplemented.h"
#if USE(PLATFORM_STRATEGIES)
#include "CookiesStrategy.h"
#include "PlatformStrategies.h"
#endif
#include <stdio.h>
namespace WebCore {
void setCookieStoragePrivateBrowsingEnabled(bool enabled)
{
notImplemented();
}
#if USE(PLATFORM_STRATEGIES)
static void soupCookiesChanged(SoupCookieJar*, SoupCookie*, SoupCookie*, gpointer)
{
platformStrategies()->cookiesStrategy()->notifyCookiesChanged();
}
#endif
void startObservingCookieChanges()
{
#if USE(PLATFORM_STRATEGIES)
g_signal_connect(soupCookieJar(), "changed", G_CALLBACK(soupCookiesChanged), 0);
#endif
}
void stopObservingCookieChanges()
{
#if USE(PLATFORM_STRATEGIES)
g_signal_handlers_disconnect_by_func(soupCookieJar(), reinterpret_cast<void*>(soupCookiesChanged), 0);
#endif
}
}