blob: 7cb590e7477fc6a5761ef6c673ffd3281a84e69f [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/browsing_data/canonical_cookie_hash.h"
#include "base/hash.h"
namespace canonical_cookie {
size_t FastHash(const net::CanonicalCookie& cookie) {
return base::PersistentHash(cookie.Name()) +
3 * base::PersistentHash(cookie.Domain()) +
7 * base::PersistentHash(cookie.Path());
}
} // namespace canonical_cookie