diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-25 08:31:47 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-25 08:31:47 +0000 |
commit | 0f7066ec8158cd03ddf8b7b6075a54b1da09673f (patch) | |
tree | 8a57df1ffd95eb6910339f757e12390b11d5be4c /chrome/browser/net/chrome_cookie_notification_details.h | |
parent | 24a7f3c1308fd32d8620f5bd412ede8f84da9794 (diff) | |
download | chromium_src-0f7066ec8158cd03ddf8b7b6075a54b1da09673f.zip chromium_src-0f7066ec8158cd03ddf8b7b6075a54b1da09673f.tar.gz chromium_src-0f7066ec8158cd03ddf8b7b6075a54b1da09673f.tar.bz2 |
Reland r42473. Add a delegate to CookieMonster and broadcast notifications about changes to cookies.
This change will allow implementing the experimental cookie extension API, specifically the cookies.onChaned event
BUG=none
TEST=net_unittests
TBR=jochen@
Review URL: http://codereview.chromium.org/1287001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42586 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net/chrome_cookie_notification_details.h')
-rw-r--r-- | chrome/browser/net/chrome_cookie_notification_details.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/chrome/browser/net/chrome_cookie_notification_details.h b/chrome/browser/net/chrome_cookie_notification_details.h new file mode 100644 index 0000000..a4ee4a0 --- /dev/null +++ b/chrome/browser/net/chrome_cookie_notification_details.h @@ -0,0 +1,22 @@ +// Copyright (c) 2010 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. + +#ifndef CHROME_BROWSER_NET_CHROME_COOKIE_NOTIFICATION_DETAILS_H_ +#define CHROME_BROWSER_NET_CHROME_COOKIE_NOTIFICATION_DETAILS_H_ + +#include "net/base/cookie_monster.h" + +struct ChromeCookieDetails { + public: + ChromeCookieDetails(net::CookieMonster::CookieListPair* cookie_pair_copy, + bool is_removed) + : cookie_pair(cookie_pair_copy), + removed(is_removed) { + } + + net::CookieMonster::CookieListPair* cookie_pair; + bool removed; +}; + +#endif // CHROME_BROWSER_NET_CHROME_COOKIE_NOTIFICATION_DETAILS_H_ |