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 <deque> | 10 #include <deque> |
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
639 bool persist_session_cookies_; | 639 bool persist_session_cookies_; |
640 | 640 |
641 // Static setting for whether or not file scheme cookies are allows when | 641 // Static setting for whether or not file scheme cookies are allows when |
642 // a new CookieMonster is created, or the accepted schemes on a CookieMonster | 642 // a new CookieMonster is created, or the accepted schemes on a CookieMonster |
643 // instance are reset back to defaults. | 643 // instance are reset back to defaults. |
644 static bool default_enable_file_scheme_; | 644 static bool default_enable_file_scheme_; |
645 | 645 |
646 DISALLOW_COPY_AND_ASSIGN(CookieMonster); | 646 DISALLOW_COPY_AND_ASSIGN(CookieMonster); |
647 }; | 647 }; |
648 | 648 |
649 class CookieMonster::Delegate | 649 class NET_EXPORT CookieMonster::Delegate |
650 : public base::RefCountedThreadSafe<CookieMonster::Delegate> { | 650 : public base::RefCountedThreadSafe<CookieMonster::Delegate> { |
651 public: | 651 public: |
652 // The publicly relevant reasons a cookie might be changed. | 652 // The publicly relevant reasons a cookie might be changed. |
653 enum ChangeCause { | 653 enum ChangeCause { |
654 // The cookie was changed directly by a consumer's action. | 654 // The cookie was changed directly by a consumer's action. |
655 CHANGE_COOKIE_EXPLICIT, | 655 CHANGE_COOKIE_EXPLICIT, |
656 // The cookie was automatically removed due to an insert operation that | 656 // The cookie was automatically removed due to an insert operation that |
657 // overwrote it. | 657 // overwrote it. |
658 CHANGE_COOKIE_OVERWRITE, | 658 CHANGE_COOKIE_OVERWRITE, |
659 // The cookie was automatically removed as it expired. | 659 // The cookie was automatically removed as it expired. |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
720 virtual ~PersistentCookieStore() {} | 720 virtual ~PersistentCookieStore() {} |
721 | 721 |
722 private: | 722 private: |
723 friend class base::RefCountedThreadSafe<PersistentCookieStore>; | 723 friend class base::RefCountedThreadSafe<PersistentCookieStore>; |
724 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore); | 724 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore); |
725 }; | 725 }; |
726 | 726 |
727 } // namespace net | 727 } // namespace net |
728 | 728 |
729 #endif // NET_COOKIES_COOKIE_MONSTER_H_ | 729 #endif // NET_COOKIES_COOKIE_MONSTER_H_ |
OLD | NEW |