// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Provides utility structures for inserting a CanonicalCookie into a hash set. // Two cookies are considered equal if their names, domains, and paths are // equivalent. #ifndef COMPONENTS_BROWSING_DATA_CONTENT_CANONICAL_COOKIE_HASH_H_ #define COMPONENTS_BROWSING_DATA_CONTENT_CANONICAL_COOKIE_HASH_H_ #include <stddef.h> #include <unordered_set> namespace net { class CanonicalCookie; } namespace canonical_cookie { // Returns a fast hash of a cookie, based on its name, domain, and path. size_t FastHash(const net::CanonicalCookie& cookie); struct CanonicalCookieHasher { … }; struct CanonicalCookieComparer { … }; CookieHashSet; } // namespace canonical_cookie #endif // COMPONENTS_BROWSING_DATA_CONTENT_CANONICAL_COOKIE_HASH_H_