| Index: net/cookies/cookie_monster.h
|
| diff --git a/net/cookies/cookie_monster.h b/net/cookies/cookie_monster.h
|
| index 741c22e6d080fc4518a299f5be34b917191698db..a41c3910b4a43a0204ba2374a1069371a8c1ea7e 100644
|
| --- a/net/cookies/cookie_monster.h
|
| +++ b/net/cookies/cookie_monster.h
|
| @@ -18,6 +18,7 @@
|
| #include "base/basictypes.h"
|
| #include "base/callback_forward.h"
|
| #include "base/gtest_prod_util.h"
|
| +#include "base/memory/linked_ptr.h"
|
| #include "base/memory/ref_counted.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/synchronization/lock.h"
|
| @@ -26,8 +27,7 @@
|
| #include "net/cookies/canonical_cookie.h"
|
| #include "net/cookies/cookie_constants.h"
|
| #include "net/cookies/cookie_store.h"
|
| -
|
| -class GURL;
|
| +#include "url/gurl.h"
|
|
|
| namespace base {
|
| class Histogram;
|
| @@ -315,6 +315,11 @@ class NET_EXPORT CookieMonster : public CookieStore {
|
| // See comment on keys before the CookieMap typedef.
|
| std::string GetKey(const std::string& domain) const;
|
|
|
| + scoped_ptr<CookieChangedSubscription> AddCallbackForCookie(
|
| + const GURL& url,
|
| + const std::string& name,
|
| + const CookieChangedCallback& callback) override;
|
| +
|
| bool loaded();
|
|
|
| private:
|
| @@ -695,6 +700,12 @@ class NET_EXPORT CookieMonster : public CookieStore {
|
| // instance are reset back to defaults.
|
| static bool default_enable_file_scheme_;
|
|
|
| + typedef std::map<std::pair<GURL, std::string>,
|
| + linked_ptr<CookieChangedCallbackList>> CookieChangedHookMap;
|
| + CookieChangedHookMap hook_map_;
|
| +
|
| + void RunCallbacks(const CanonicalCookie& cookie);
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(CookieMonster);
|
| };
|
|
|
|
|