diff options
author | Jocelyn Turcotte <jocelyn.turcotte@nokia.com> | 2009-10-22 19:50:52 +0200 |
---|---|---|
committer | Jocelyn Turcotte <jocelyn.turcotte@nokia.com> | 2009-10-22 20:34:20 +0200 |
commit | 57f1983c164bc8553c6b6aa7ac320f00e5405548 (patch) | |
tree | 6cfbec33f6e385ceb5cbfa0168f4a9f27f0c8e57 /src/3rdparty/webkit/WebCore/platform/Cookie.h | |
parent | 5baebfc68dd67def412bcbaa7c61b43d05e6ee42 (diff) |
Updated WebKit from /home/jturcott/dev/webkit/ to qtwebkit-4.6-snapshot-22102009 ( 0639bb8e812c8923287cd5523248ca64fa5f7a50 )
Changes in WebKit/qt since the last update:
Jocelyn: fatal error from script, sha1 in src/3rdparty/webkit/VERSION is bad
Diffstat (limited to 'src/3rdparty/webkit/WebCore/platform/Cookie.h')
-rw-r--r-- | src/3rdparty/webkit/WebCore/platform/Cookie.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/3rdparty/webkit/WebCore/platform/Cookie.h b/src/3rdparty/webkit/WebCore/platform/Cookie.h index 3e74ddc635..0fe3851e2d 100644 --- a/src/3rdparty/webkit/WebCore/platform/Cookie.h +++ b/src/3rdparty/webkit/WebCore/platform/Cookie.h @@ -27,6 +27,7 @@ #define Cookie_h #include "PlatformString.h" +#include "StringHash.h" namespace WebCore { @@ -58,6 +59,24 @@ namespace WebCore { bool session; }; + struct CookieHash { + static unsigned hash(Cookie key) + { + return StringHash::hash(key.name) + StringHash::hash(key.domain) + StringHash::hash(key.path) + key.secure; + } + + static bool equal(Cookie a, Cookie b) + { + return a.name == b.name && a.domain == b.domain && a.path == b.path && a.secure == b.secure; + } + }; +} + +namespace WTF { + template<typename T> struct DefaultHash; + template<> struct DefaultHash<WebCore::Cookie> { + typedef WebCore::CookieHash Hash; + }; } #endif |