diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-23 12:08:18 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-23 12:08:18 +0000 |
commit | 8bb846f9fa618c1975638a49c3be7ec61f304d13 (patch) | |
tree | b9a089f61f1c9c709f82eea0dc7a030cee23c24f /chrome/browser/net | |
parent | 9b78cfd2818651c50f76990771fdaae1d85c3c3d (diff) | |
download | chromium_src-8bb846f9fa618c1975638a49c3be7ec61f304d13.zip chromium_src-8bb846f9fa618c1975638a49c3be7ec61f304d13.tar.gz chromium_src-8bb846f9fa618c1975638a49c3be7ec61f304d13.tar.bz2 |
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 <mkwst@chromium.org>.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79113 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net')
-rw-r--r-- | chrome/browser/net/chrome_cookie_notification_details.h | 7 |
1 files changed, 5 insertions, 2 deletions
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_ |