OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 number 42. | 5 // Brought to you by number 42. |
6 | 6 |
7 #ifndef NET_BASE_COOKIE_STORE_H_ | 7 #ifndef NET_BASE_COOKIE_STORE_H_ |
8 #define NET_BASE_COOKIE_STORE_H_ | 8 #define NET_BASE_COOKIE_STORE_H_ |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 // Simple interface, get a cookie string "a=b; c=d" for the given URL. | 52 // Simple interface, get a cookie string "a=b; c=d" for the given URL. |
53 // It will _not_ return httponly cookies, see CookieOptions. | 53 // It will _not_ return httponly cookies, see CookieOptions. |
54 virtual std::string GetCookies(const GURL& url) = 0; | 54 virtual std::string GetCookies(const GURL& url) = 0; |
55 virtual std::string GetCookiesWithOptions(const GURL& url, | 55 virtual std::string GetCookiesWithOptions(const GURL& url, |
56 const CookieOptions& options) = 0; | 56 const CookieOptions& options) = 0; |
57 | 57 |
58 virtual CookieMonster* GetCookieMonster() { | 58 virtual CookieMonster* GetCookieMonster() { |
59 return NULL; | 59 return NULL; |
60 }; | 60 }; |
61 | 61 |
| 62 // Deletes the passed in cookie for the specified URL. |
| 63 virtual void DeleteCookie(const GURL& url, |
| 64 const std::string& cookie_name) = 0; |
| 65 |
62 protected: | 66 protected: |
63 friend class base::RefCountedThreadSafe<CookieStore>; | 67 friend class base::RefCountedThreadSafe<CookieStore>; |
64 virtual ~CookieStore() {} | 68 virtual ~CookieStore() {} |
65 }; | 69 }; |
66 | 70 |
67 } // namespace net | 71 } // namespace net |
68 | 72 |
69 #endif // NET_BASE_COOKIE_STORE_H_ | 73 #endif // NET_BASE_COOKIE_STORE_H_ |
OLD | NEW |