From 8bb846f9fa618c1975638a49c3be7ec61f304d13 Mon Sep 17 00:00:00 2001 From: "jochen@chromium.org" Date: Wed, 23 Mar 2011 12:08:18 +0000 Subject: Adding `cause` to the cookie extension API's onchanged event signature. This makes it simpler for developers to deal with the release/set event pair generated by setting a cookie that already exists, and gives them more information about general cookie removal (e.g. that the cookie wasn't "removed" actively but expired). BUG=70101 TEST=net_unittests Review URL: http://codereview.chromium.org/6698023 Patch from Mike West . git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79113 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/net/chrome_cookie_notification_details.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'chrome/browser/net') diff --git a/chrome/browser/net/chrome_cookie_notification_details.h b/chrome/browser/net/chrome_cookie_notification_details.h index 57df427..96b32ce 100644 --- a/chrome/browser/net/chrome_cookie_notification_details.h +++ b/chrome/browser/net/chrome_cookie_notification_details.h @@ -11,13 +11,16 @@ struct ChromeCookieDetails { public: ChromeCookieDetails(const net::CookieMonster::CanonicalCookie* cookie_copy, - bool is_removed) + bool is_removed, + net::CookieMonster::Delegate::ChangeCause cause) : cookie(cookie_copy), - removed(is_removed) { + removed(is_removed), + cause(cause) { } const net::CookieMonster::CanonicalCookie* cookie; bool removed; + net::CookieMonster::Delegate::ChangeCause cause; }; #endif // CHROME_BROWSER_NET_CHROME_COOKIE_NOTIFICATION_DETAILS_H_ -- cgit v1.1