| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Brought to you by the letter D and the number 2. | 5 // Brought to you by the letter D and the number 2. |
| 6 | 6 |
| 7 #ifndef NET_COOKIES_COOKIE_MONSTER_H_ | 7 #ifndef NET_COOKIES_COOKIE_MONSTER_H_ |
| 8 #define NET_COOKIES_COOKIE_MONSTER_H_ | 8 #define NET_COOKIES_COOKIE_MONSTER_H_ |
| 9 | 9 |
| 10 #include <stddef.h> | 10 #include <stddef.h> |
| (...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 628 CookieList* new_cookies, | 628 CookieList* new_cookies, |
| 629 CookieList* cookies_to_add, | 629 CookieList* cookies_to_add, |
| 630 CookieList* cookies_to_delete); | 630 CookieList* cookies_to_delete); |
| 631 | 631 |
| 632 // Runs the given callback. Used to avoid running callbacks after the store | 632 // Runs the given callback. Used to avoid running callbacks after the store |
| 633 // has been destroyed. | 633 // has been destroyed. |
| 634 void RunCallback(const base::Closure& callback); | 634 void RunCallback(const base::Closure& callback); |
| 635 | 635 |
| 636 // Run all cookie changed callbacks that are monitoring |cookie|. | 636 // Run all cookie changed callbacks that are monitoring |cookie|. |
| 637 // |removed| is true if the cookie was deleted. | 637 // |removed| is true if the cookie was deleted. |
| 638 void RunCookieChangedCallbacks(const CanonicalCookie& cookie, bool removed); | 638 void RunCookieChangedCallbacks(const CanonicalCookie& cookie, |
| 639 bool removed, |
| 640 CookieStore::RemovalCause cause); |
| 639 | 641 |
| 640 // Histogram variables; see CookieMonster::InitializeHistograms() in | 642 // Histogram variables; see CookieMonster::InitializeHistograms() in |
| 641 // cookie_monster.cc for details. | 643 // cookie_monster.cc for details. |
| 642 base::HistogramBase* histogram_expiration_duration_minutes_; | 644 base::HistogramBase* histogram_expiration_duration_minutes_; |
| 643 base::HistogramBase* histogram_evicted_last_access_minutes_; | 645 base::HistogramBase* histogram_evicted_last_access_minutes_; |
| 644 base::HistogramBase* histogram_count_; | 646 base::HistogramBase* histogram_count_; |
| 645 base::HistogramBase* histogram_cookie_deletion_cause_; | 647 base::HistogramBase* histogram_cookie_deletion_cause_; |
| 646 base::HistogramBase* histogram_cookie_type_; | 648 base::HistogramBase* histogram_cookie_type_; |
| 647 base::HistogramBase* histogram_cookie_source_scheme_; | 649 base::HistogramBase* histogram_cookie_source_scheme_; |
| 648 base::HistogramBase* histogram_cookie_delete_equivalent_; | 650 base::HistogramBase* histogram_cookie_delete_equivalent_; |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 807 virtual ~PersistentCookieStore() {} | 809 virtual ~PersistentCookieStore() {} |
| 808 | 810 |
| 809 private: | 811 private: |
| 810 friend class base::RefCountedThreadSafe<PersistentCookieStore>; | 812 friend class base::RefCountedThreadSafe<PersistentCookieStore>; |
| 811 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore); | 813 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore); |
| 812 }; | 814 }; |
| 813 | 815 |
| 814 } // namespace net | 816 } // namespace net |
| 815 | 817 |
| 816 #endif // NET_COOKIES_COOKIE_MONSTER_H_ | 818 #endif // NET_COOKIES_COOKIE_MONSTER_H_ |
| OLD | NEW |