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 <memory> | 10 #include <memory> |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 const std::string& name, | 109 const std::string& name, |
110 const std::string& value, | 110 const std::string& value, |
111 const std::string& domain, | 111 const std::string& domain, |
112 const std::string& path, | 112 const std::string& path, |
113 base::Time creation_time, | 113 base::Time creation_time, |
114 base::Time expiration_time, | 114 base::Time expiration_time, |
115 base::Time last_access_time, | 115 base::Time last_access_time, |
116 bool secure, | 116 bool secure, |
117 bool http_only, | 117 bool http_only, |
118 CookieSameSite same_site, | 118 CookieSameSite same_site, |
119 bool enforce_strict_secure, | |
120 CookiePriority priority, | 119 CookiePriority priority, |
121 const SetCookiesCallback& callback) = 0; | 120 const SetCookiesCallback& callback) = 0; |
122 | 121 |
123 // TODO(???): what if the total size of all the cookies >4k, can we have a | 122 // TODO(???): what if the total size of all the cookies >4k, can we have a |
124 // header that big or do we need multiple Cookie: headers? | 123 // header that big or do we need multiple Cookie: headers? |
125 // Note: Some sites, such as Facebook, occasionally use Cookie headers >4k. | 124 // Note: Some sites, such as Facebook, occasionally use Cookie headers >4k. |
126 // | 125 // |
127 // Simple interface, gets a cookie string "a=b; c=d" for the given URL. | 126 // Simple interface, gets a cookie string "a=b; c=d" for the given URL. |
128 // Gets all cookies that apply to |url| given |options|. Use options to | 127 // Gets all cookies that apply to |url| given |options|. Use options to |
129 // access httponly cookies. | 128 // access httponly cookies. |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 int GetChannelIDServiceID(); | 235 int GetChannelIDServiceID(); |
237 | 236 |
238 protected: | 237 protected: |
239 CookieStore(); | 238 CookieStore(); |
240 int channel_id_service_id_; | 239 int channel_id_service_id_; |
241 }; | 240 }; |
242 | 241 |
243 } // namespace net | 242 } // namespace net |
244 | 243 |
245 #endif // NET_COOKIES_COOKIE_STORE_H_ | 244 #endif // NET_COOKIES_COOKIE_STORE_H_ |
OLD | NEW |