| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_BASE_COOKIE_MONSTER_H_ | 7 #ifndef NET_BASE_COOKIE_MONSTER_H_ |
| 8 #define NET_BASE_COOKIE_MONSTER_H_ | 8 #define NET_BASE_COOKIE_MONSTER_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 const base::Time& creation_time, | 88 const base::Time& creation_time, |
| 89 const CookieOptions& options); | 89 const CookieOptions& options); |
| 90 virtual void SetCookies(const GURL& url, | 90 virtual void SetCookies(const GURL& url, |
| 91 const std::vector<std::string>& cookies); | 91 const std::vector<std::string>& cookies); |
| 92 virtual void SetCookiesWithOptions(const GURL& url, | 92 virtual void SetCookiesWithOptions(const GURL& url, |
| 93 const std::vector<std::string>& cookies, | 93 const std::vector<std::string>& cookies, |
| 94 const CookieOptions& options); | 94 const CookieOptions& options); |
| 95 virtual std::string GetCookies(const GURL& url); | 95 virtual std::string GetCookies(const GURL& url); |
| 96 virtual std::string GetCookiesWithOptions(const GURL& url, | 96 virtual std::string GetCookiesWithOptions(const GURL& url, |
| 97 const CookieOptions& options); | 97 const CookieOptions& options); |
| 98 virtual void GetRawCookies(const GURL& url, |
| 99 std::vector<CanonicalCookie>* raw_cookies); |
| 100 virtual void DeleteCookie(const GURL& url, const std::string& cookie_name); |
| 98 | 101 |
| 99 virtual CookieMonster* GetCookieMonster() { | 102 virtual CookieMonster* GetCookieMonster() { |
| 100 return this; | 103 return this; |
| 101 } | 104 } |
| 102 | 105 |
| 103 // Returns all the cookies, for use in management UI, etc. This does not mark | 106 // Returns all the cookies, for use in management UI, etc. This does not mark |
| 104 // the cookies as having been accessed. | 107 // the cookies as having been accessed. |
| 105 CookieList GetAllCookies(); | 108 CookieList GetAllCookies(); |
| 106 | 109 |
| 107 // Delete all of the cookies. | 110 // Delete all of the cookies. |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 protected: | 389 protected: |
| 387 PersistentCookieStore() { } | 390 PersistentCookieStore() { } |
| 388 | 391 |
| 389 private: | 392 private: |
| 390 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore); | 393 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore); |
| 391 }; | 394 }; |
| 392 | 395 |
| 393 } // namespace net | 396 } // namespace net |
| 394 | 397 |
| 395 #endif // NET_BASE_COOKIE_MONSTER_H_ | 398 #endif // NET_BASE_COOKIE_MONSTER_H_ |
| OLD | NEW |