CookieJarBlackBerry.cpp [plain text]
#include "config.h"
#include "PlatformCookieJar.h"
#include "CookieManager.h"
#include "NotImplemented.h"
namespace WebCore {
void setCookiesFromDOM(const NetworkStorageSession&, const KURL& , const KURL& url, const String& value)
{
cookieManager().setCookies(url, value, NoHttpOnlyCookie);
}
String cookiesForDOM(const NetworkStorageSession&, const KURL& , const KURL& url)
{
return cookieManager().getCookie(url, NoHttpOnlyCookie);
}
String cookieRequestHeaderFieldValue(const NetworkStorageSession&, const KURL& , const KURL& url)
{
return cookieManager().getCookie(url, WithHttpOnlyCookies);
}
bool cookiesEnabled(const NetworkStorageSession&, const KURL& , const KURL& )
{
return !cookieManager().cookieJar().isEmpty();
}
bool getRawCookies(const NetworkStorageSession&, const KURL& , const KURL& url, Vector<Cookie>& rawCookies)
{
Vector<RefPtr<ParsedCookie> > result;
cookieManager().getRawCookies(result, url, WithHttpOnlyCookies);
for (size_t i = 0; i < result.size(); i++)
result[i]->appendWebCoreCookie(rawCookies);
return true;
}
void deleteCookie(const NetworkStorageSession&, const KURL& url, const String& name)
{
cookieManager().removeCookieWithName(url, name);
}
void getHostnamesWithCookies(const NetworkStorageSession&, HashSet<String>& )
{
notImplemented();
}
void deleteCookiesForHostname(const NetworkStorageSession&, const String& )
{
notImplemented();
}
void deleteAllCookies(const NetworkStorageSession&)
{
notImplemented();
}
}