| 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 // cookie value attribute) and will return false without setting the cookie | 161 // cookie value attribute) and will return false without setting the cookie |
| 162 // if such characters are found. | 162 // if such characters are found. |
| 163 void SetCookieWithDetailsAsync(const GURL& url, | 163 void SetCookieWithDetailsAsync(const GURL& url, |
| 164 const std::string& name, | 164 const std::string& name, |
| 165 const std::string& value, | 165 const std::string& value, |
| 166 const std::string& domain, | 166 const std::string& domain, |
| 167 const std::string& path, | 167 const std::string& path, |
| 168 const base::Time& expiration_time, | 168 const base::Time& expiration_time, |
| 169 bool secure, | 169 bool secure, |
| 170 bool http_only, | 170 bool http_only, |
| 171 bool first_party, |
| 171 CookiePriority priority, | 172 CookiePriority priority, |
| 172 const SetCookiesCallback& callback); | 173 const SetCookiesCallback& callback); |
| 173 | 174 |
| 174 // Returns all the cookies, for use in management UI, etc. This does not mark | 175 // Returns all the cookies, for use in management UI, etc. This does not mark |
| 175 // the cookies as having been accessed. | 176 // the cookies as having been accessed. |
| 176 // The returned cookies are ordered by longest path, then by earliest | 177 // The returned cookies are ordered by longest path, then by earliest |
| 177 // creation date. | 178 // creation date. |
| 178 void GetAllCookiesAsync(const GetCookieListCallback& callback); | 179 void GetAllCookiesAsync(const GetCookieListCallback& callback); |
| 179 | 180 |
| 180 // Returns all the cookies, for use in management UI, etc. Filters results | 181 // Returns all the cookies, for use in management UI, etc. Filters results |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 // delegate either immediately (if the store is loaded) or through a deferred | 415 // delegate either immediately (if the store is loaded) or through a deferred |
| 415 // task (if the store is not yet loaded). | 416 // task (if the store is not yet loaded). |
| 416 bool SetCookieWithDetails(const GURL& url, | 417 bool SetCookieWithDetails(const GURL& url, |
| 417 const std::string& name, | 418 const std::string& name, |
| 418 const std::string& value, | 419 const std::string& value, |
| 419 const std::string& domain, | 420 const std::string& domain, |
| 420 const std::string& path, | 421 const std::string& path, |
| 421 const base::Time& expiration_time, | 422 const base::Time& expiration_time, |
| 422 bool secure, | 423 bool secure, |
| 423 bool http_only, | 424 bool http_only, |
| 425 bool first_party, |
| 424 CookiePriority priority); | 426 CookiePriority priority); |
| 425 | 427 |
| 426 CookieList GetAllCookies(); | 428 CookieList GetAllCookies(); |
| 427 | 429 |
| 428 CookieList GetAllCookiesForURLWithOptions(const GURL& url, | 430 CookieList GetAllCookiesForURLWithOptions(const GURL& url, |
| 429 const CookieOptions& options); | 431 const CookieOptions& options); |
| 430 | 432 |
| 431 CookieList GetAllCookiesForURL(const GURL& url); | 433 CookieList GetAllCookiesForURL(const GURL& url); |
| 432 | 434 |
| 433 int DeleteAll(bool sync_to_store); | 435 int DeleteAll(bool sync_to_store); |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 786 virtual ~PersistentCookieStore() {} | 788 virtual ~PersistentCookieStore() {} |
| 787 | 789 |
| 788 private: | 790 private: |
| 789 friend class base::RefCountedThreadSafe<PersistentCookieStore>; | 791 friend class base::RefCountedThreadSafe<PersistentCookieStore>; |
| 790 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore); | 792 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore); |
| 791 }; | 793 }; |
| 792 | 794 |
| 793 } // namespace net | 795 } // namespace net |
| 794 | 796 |
| 795 #endif // NET_COOKIES_COOKIE_MONSTER_H_ | 797 #endif // NET_COOKIES_COOKIE_MONSTER_H_ |
| OLD | NEW |