OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 9 #pragma once |
10 | 10 |
(...skipping 151 matching lines...) Loading... |
162 const base::Time& expiration_time, | 162 const base::Time& expiration_time, |
163 bool secure, bool http_only); | 163 bool secure, bool http_only); |
164 | 164 |
165 // Returns all the cookies, for use in management UI, etc. This does not mark | 165 // Returns all the cookies, for use in management UI, etc. This does not mark |
166 // the cookies as having been accessed. | 166 // the cookies as having been accessed. |
167 // The returned cookies are ordered by longest path, then by earliest | 167 // The returned cookies are ordered by longest path, then by earliest |
168 // creation date. | 168 // creation date. |
169 CookieList GetAllCookies(); | 169 CookieList GetAllCookies(); |
170 | 170 |
171 // Returns all the cookies, for use in management UI, etc. Filters results | 171 // Returns all the cookies, for use in management UI, etc. Filters results |
172 // using given url scheme, host / domain and path. This does not mark the | 172 // using given url scheme, host / domain and path and options. This does not |
173 // cookies as having been accessed. | 173 // mark the cookies as having been accessed. |
174 // The returned cookies are ordered by longest path, then earliest | 174 // The returned cookies are ordered by longest path, then earliest |
175 // creation date. | 175 // creation date. |
| 176 CookieList GetAllCookiesForURLWithOptions(const GURL& url, |
| 177 const CookieOptions& options); |
| 178 |
| 179 // Invokes GetAllCookiesForURLWithOptions with options set to include HTTP |
| 180 // only cookies. |
176 CookieList GetAllCookiesForURL(const GURL& url); | 181 CookieList GetAllCookiesForURL(const GURL& url); |
177 | 182 |
178 // Deletes all of the cookies. | 183 // Deletes all of the cookies. |
179 int DeleteAll(bool sync_to_store); | 184 int DeleteAll(bool sync_to_store); |
180 // Deletes all of the cookies that have a creation_date greater than or equal | 185 // Deletes all of the cookies that have a creation_date greater than or equal |
181 // to |delete_begin| and less than |delete_end| | 186 // to |delete_begin| and less than |delete_end| |
182 int DeleteAllCreatedBetween(const base::Time& delete_begin, | 187 int DeleteAllCreatedBetween(const base::Time& delete_begin, |
183 const base::Time& delete_end, | 188 const base::Time& delete_end, |
184 bool sync_to_store); | 189 bool sync_to_store); |
185 // Deletes all of the cookies that have a creation_date more recent than the | 190 // Deletes all of the cookies that have a creation_date more recent than the |
(...skipping 507 matching lines...) Loading... |
693 private: | 698 private: |
694 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore); | 699 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore); |
695 }; | 700 }; |
696 | 701 |
697 class CookieList : public std::vector<CookieMonster::CanonicalCookie> { | 702 class CookieList : public std::vector<CookieMonster::CanonicalCookie> { |
698 }; | 703 }; |
699 | 704 |
700 } // namespace net | 705 } // namespace net |
701 | 706 |
702 #endif // NET_BASE_COOKIE_MONSTER_H_ | 707 #endif // NET_BASE_COOKIE_MONSTER_H_ |
OLD | NEW |