| 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 number 42. | 5 // Brought to you by number 42. |
| 6 | 6 |
| 7 #ifndef NET_COOKIES_COOKIE_STORE_H_ | 7 #ifndef NET_COOKIES_COOKIE_STORE_H_ |
| 8 #define NET_COOKIES_COOKIE_STORE_H_ | 8 #define NET_COOKIES_COOKIE_STORE_H_ |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 const GURL& url, | 84 const GURL& url, |
| 85 const std::string& name, | 85 const std::string& name, |
| 86 const std::string& value, | 86 const std::string& value, |
| 87 const std::string& domain, | 87 const std::string& domain, |
| 88 const std::string& path, | 88 const std::string& path, |
| 89 base::Time creation_time, | 89 base::Time creation_time, |
| 90 base::Time expiration_time, | 90 base::Time expiration_time, |
| 91 base::Time last_access_time, | 91 base::Time last_access_time, |
| 92 bool secure, | 92 bool secure, |
| 93 bool http_only, | 93 bool http_only, |
| 94 bool same_site, | 94 CookieSameSite same_site, |
| 95 bool enforce_strict_secure, | 95 bool enforce_strict_secure, |
| 96 CookiePriority priority, | 96 CookiePriority priority, |
| 97 const SetCookiesCallback& callback) = 0; | 97 const SetCookiesCallback& callback) = 0; |
| 98 | 98 |
| 99 // TODO(???): what if the total size of all the cookies >4k, can we have a | 99 // TODO(???): what if the total size of all the cookies >4k, can we have a |
| 100 // header that big or do we need multiple Cookie: headers? | 100 // header that big or do we need multiple Cookie: headers? |
| 101 // Note: Some sites, such as Facebook, occasionally use Cookie headers >4k. | 101 // Note: Some sites, such as Facebook, occasionally use Cookie headers >4k. |
| 102 // | 102 // |
| 103 // Simple interface, gets a cookie string "a=b; c=d" for the given URL. | 103 // Simple interface, gets a cookie string "a=b; c=d" for the given URL. |
| 104 // Gets all cookies that apply to |url| given |options|. Use options to | 104 // Gets all cookies that apply to |url| given |options|. Use options to |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 // TODO(nharper): Remove this method once crbug.com/548423 has been closed. | 207 // TODO(nharper): Remove this method once crbug.com/548423 has been closed. |
| 208 virtual bool IsEphemeral() = 0; | 208 virtual bool IsEphemeral() = 0; |
| 209 | 209 |
| 210 protected: | 210 protected: |
| 211 CookieStore(); | 211 CookieStore(); |
| 212 }; | 212 }; |
| 213 | 213 |
| 214 } // namespace net | 214 } // namespace net |
| 215 | 215 |
| 216 #endif // NET_COOKIES_COOKIE_STORE_H_ | 216 #endif // NET_COOKIES_COOKIE_STORE_H_ |
| OLD | NEW |