static HashMap<String, String> cookieJar;
-void setCookiesFromDOM(NetworkingContext*, const KURL&, const KURL& url, const String& value)
+void setCookiesFromDOM(const NetworkStorageSession&, const KURL&, const KURL& url, const String& value)
{
cookieJar.set(url.string(), value);
}
-String cookiesForDOM(NetworkingContext*, const KURL&, const KURL& url)
+String cookiesForDOM(const NetworkStorageSession&, const KURL&, const KURL& url)
{
return cookieJar.get(url.string());
}
-String cookieRequestHeaderFieldValue(NetworkingContext* context, const KURL& /*firstParty*/, const KURL& url)
+String cookieRequestHeaderFieldValue(const NetworkStorageSession&, const KURL& /*firstParty*/, const KURL& url)
{
// FIXME: include HttpOnly cookie.
return cookieJar.get(url.string());
}
-bool cookiesEnabled(NetworkingContext* context, const KURL& /*firstParty*/, const KURL& /*url*/)
+bool cookiesEnabled(const NetworkStorageSession&, const KURL& /*firstParty*/, const KURL& /*url*/)
{
return true;
}
-bool getRawCookies(NetworkingContext* context, const KURL& /*firstParty*/, const KURL& /*url*/, Vector<Cookie>& rawCookies)
+bool getRawCookies(const NetworkStorageSession&, const KURL& /*firstParty*/, const KURL& /*url*/, Vector<Cookie>& rawCookies)
{
// FIXME: Not yet implemented
rawCookies.clear();
return false; // return true when implemented
}
-void deleteCookie(NetworkingContext*, const KURL&, const String&)
+void deleteCookie(const NetworkStorageSession&, const KURL&, const String&)
{
// FIXME: Not yet implemented
}
-void getHostnamesWithCookies(NetworkingContext*, HashSet<String>& hostnames)
+void getHostnamesWithCookies(const NetworkStorageSession&, HashSet<String>& hostnames)
{
// FIXME: Not yet implemented
}
-void deleteCookiesForHostname(NetworkingContext*, const String& hostname)
+void deleteCookiesForHostname(const NetworkStorageSession&, const String& hostname)
{
// FIXME: Not yet implemented
}
-void deleteAllCookies(NetworkingContext*)
+void deleteAllCookies(const NetworkStorageSession&)
{
// FIXME: Not yet implemented
}