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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 // Both |other| and |this| must be loaded for this operation to succeed. | 308 // Both |other| and |this| must be loaded for this operation to succeed. |
309 // Furthermore, there may not be any cookies stored in |other| for |key|. | 309 // Furthermore, there may not be any cookies stored in |other| for |key|. |
310 // Returns false if any of these conditions is not met. | 310 // Returns false if any of these conditions is not met. |
311 bool CopyCookiesForKeyToOtherCookieMonster(std::string key, | 311 bool CopyCookiesForKeyToOtherCookieMonster(std::string key, |
312 CookieMonster* other); | 312 CookieMonster* other); |
313 | 313 |
314 // Find the key (for lookup in cookies_) based on the given domain. | 314 // Find the key (for lookup in cookies_) based on the given domain. |
315 // See comment on keys before the CookieMap typedef. | 315 // See comment on keys before the CookieMap typedef. |
316 std::string GetKey(const std::string& domain) const; | 316 std::string GetKey(const std::string& domain) const; |
317 | 317 |
318 virtual scoped_ptr<CookieChangedSubscription> AddCallbackForCookie( | 318 scoped_ptr<CookieChangedSubscription> AddCallbackForCookie( |
319 const GURL& url, | 319 const GURL& url, |
320 const std::string& name, | 320 const std::string& name, |
321 const CookieChangedCallback& callback) override; | 321 const CookieChangedCallback& callback) override; |
322 | 322 |
323 bool loaded(); | 323 bool loaded(); |
324 | 324 |
325 private: | 325 private: |
326 // For queueing the cookie monster calls. | 326 // For queueing the cookie monster calls. |
327 class CookieMonsterTask; | 327 class CookieMonsterTask; |
328 template <typename Result> class DeleteTask; | 328 template <typename Result> class DeleteTask; |
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
786 virtual ~PersistentCookieStore() {} | 786 virtual ~PersistentCookieStore() {} |
787 | 787 |
788 private: | 788 private: |
789 friend class base::RefCountedThreadSafe<PersistentCookieStore>; | 789 friend class base::RefCountedThreadSafe<PersistentCookieStore>; |
790 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore); | 790 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore); |
791 }; | 791 }; |
792 | 792 |
793 } // namespace net | 793 } // namespace net |
794 | 794 |
795 #endif // NET_COOKIES_COOKIE_MONSTER_H_ | 795 #endif // NET_COOKIES_COOKIE_MONSTER_H_ |
OLD | NEW |