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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 // if such characters are found. | 160 // if such characters are found. |
161 void SetCookieWithDetailsAsync(const GURL& url, | 161 void SetCookieWithDetailsAsync(const GURL& url, |
162 const std::string& name, | 162 const std::string& name, |
163 const std::string& value, | 163 const std::string& value, |
164 const std::string& domain, | 164 const std::string& domain, |
165 const std::string& path, | 165 const std::string& path, |
166 const base::Time& expiration_time, | 166 const base::Time& expiration_time, |
167 bool secure, | 167 bool secure, |
168 bool http_only, | 168 bool http_only, |
169 bool first_party, | 169 bool first_party, |
170 bool enforce_prefixes, | |
171 CookiePriority priority, | 170 CookiePriority priority, |
172 const SetCookiesCallback& callback); | 171 const SetCookiesCallback& callback); |
173 | 172 |
174 // Returns all the cookies, for use in management UI, etc. This does not mark | 173 // Returns all the cookies, for use in management UI, etc. This does not mark |
175 // the cookies as having been accessed. | 174 // the cookies as having been accessed. |
176 // The returned cookies are ordered by longest path, then by earliest | 175 // The returned cookies are ordered by longest path, then by earliest |
177 // creation date. | 176 // creation date. |
178 void GetAllCookiesAsync(const GetCookieListCallback& callback); | 177 void GetAllCookiesAsync(const GetCookieListCallback& callback); |
179 | 178 |
180 // Returns all the cookies, for use in management UI, etc. Filters results | 179 // Returns all the cookies, for use in management UI, etc. Filters results |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 // task (if the store is not yet loaded). | 457 // task (if the store is not yet loaded). |
459 bool SetCookieWithDetails(const GURL& url, | 458 bool SetCookieWithDetails(const GURL& url, |
460 const std::string& name, | 459 const std::string& name, |
461 const std::string& value, | 460 const std::string& value, |
462 const std::string& domain, | 461 const std::string& domain, |
463 const std::string& path, | 462 const std::string& path, |
464 const base::Time& expiration_time, | 463 const base::Time& expiration_time, |
465 bool secure, | 464 bool secure, |
466 bool http_only, | 465 bool http_only, |
467 bool first_party, | 466 bool first_party, |
468 bool enforce_prefixes, | |
469 CookiePriority priority); | 467 CookiePriority priority); |
470 | 468 |
471 CookieList GetAllCookies(); | 469 CookieList GetAllCookies(); |
472 | 470 |
473 CookieList GetAllCookiesForURLWithOptions(const GURL& url, | 471 CookieList GetAllCookiesForURLWithOptions(const GURL& url, |
474 const CookieOptions& options); | 472 const CookieOptions& options); |
475 | 473 |
476 CookieList GetAllCookiesForURL(const GURL& url); | 474 CookieList GetAllCookiesForURL(const GURL& url); |
477 | 475 |
478 int DeleteAll(bool sync_to_store); | 476 int DeleteAll(bool sync_to_store); |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
837 virtual ~PersistentCookieStore() {} | 835 virtual ~PersistentCookieStore() {} |
838 | 836 |
839 private: | 837 private: |
840 friend class base::RefCountedThreadSafe<PersistentCookieStore>; | 838 friend class base::RefCountedThreadSafe<PersistentCookieStore>; |
841 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore); | 839 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore); |
842 }; | 840 }; |
843 | 841 |
844 } // namespace net | 842 } // namespace net |
845 | 843 |
846 #endif // NET_COOKIES_COOKIE_MONSTER_H_ | 844 #endif // NET_COOKIES_COOKIE_MONSTER_H_ |
OLD | NEW |