diff options
author | rdsmith@chromium.org <rdsmith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-07 19:33:26 +0000 |
---|---|---|
committer | rdsmith@chromium.org <rdsmith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-07 19:33:26 +0000 |
commit | 7a964a7f1edad8c8b9ef4391073b10cd84821485 (patch) | |
tree | 6be12440f93fd023a751af1de4a056f3acf3307f /net/base/cookie_monster_store_test.h | |
parent | 61855fc2c781be3419e159e959078670ec6a6483 (diff) | |
download | chromium_src-7a964a7f1edad8c8b9ef4391073b10cd84821485.zip chromium_src-7a964a7f1edad8c8b9ef4391073b10cd84821485.tar.gz chromium_src-7a964a7f1edad8c8b9ef4391073b10cd84821485.tar.bz2 |
This CL changes our per-domain limits to be per-effective domain.
This matches FireFox behavior and is for denial of service protection
when we go to FireFox expiry behavior (keeping cookies around
indefinitely if they don't have a max-age and are being used); see
issue (8850) for details.
BUG=8850
TEST=net_unittests/net_perftests on Linux with CookieMonsterTest.* filter
Review URL: http://codereview.chromium.org/3122013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58732 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/cookie_monster_store_test.h')
-rw-r--r-- | net/base/cookie_monster_store_test.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/net/base/cookie_monster_store_test.h b/net/base/cookie_monster_store_test.h index cd070a7..79d919f 100644 --- a/net/base/cookie_monster_store_test.h +++ b/net/base/cookie_monster_store_test.h @@ -21,12 +21,11 @@ struct CookieStoreCommand { }; CookieStoreCommand(Type type, - const std::string& key, const net::CookieMonster::CanonicalCookie& cookie) - : type(type), key(key), cookie(cookie) {} + : type(type), + cookie(cookie) {} Type type; - std::string key; // Only applicable to the ADD command. net::CookieMonster::CanonicalCookie cookie; }; @@ -49,22 +48,21 @@ class MockPersistentCookieStore return ok; } - virtual void AddCookie(const std::string& key, - const net::CookieMonster::CanonicalCookie& cookie) { + virtual void AddCookie(const net::CookieMonster::CanonicalCookie& cookie) { commands_.push_back( - CookieStoreCommand(CookieStoreCommand::ADD, key, cookie)); + CookieStoreCommand(CookieStoreCommand::ADD, cookie)); } virtual void UpdateCookieAccessTime( const net::CookieMonster::CanonicalCookie& cookie) { commands_.push_back(CookieStoreCommand( - CookieStoreCommand::UPDATE_ACCESS_TIME, std::string(), cookie)); + CookieStoreCommand::UPDATE_ACCESS_TIME, cookie)); } virtual void DeleteCookie( const net::CookieMonster::CanonicalCookie& cookie) { commands_.push_back( - CookieStoreCommand(CookieStoreCommand::REMOVE, std::string(), cookie)); + CookieStoreCommand(CookieStoreCommand::REMOVE, cookie)); } void SetLoadExpectation( |