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 #ifndef NET_COOKIES_CANONICAL_COOKIE_H_ | 5 #ifndef NET_COOKIES_CANONICAL_COOKIE_H_ |
6 #define NET_COOKIES_CANONICAL_COOKIE_H_ | 6 #define NET_COOKIES_CANONICAL_COOKIE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 static std::unique_ptr<CanonicalCookie> Create(const GURL& url, | 45 static std::unique_ptr<CanonicalCookie> Create(const GURL& url, |
46 const std::string& name, | 46 const std::string& name, |
47 const std::string& value, | 47 const std::string& value, |
48 const std::string& domain, | 48 const std::string& domain, |
49 const std::string& path, | 49 const std::string& path, |
50 const base::Time& creation, | 50 const base::Time& creation, |
51 const base::Time& expiration, | 51 const base::Time& expiration, |
52 bool secure, | 52 bool secure, |
53 bool http_only, | 53 bool http_only, |
54 CookieSameSite same_site, | 54 CookieSameSite same_site, |
55 bool enforce_strict_secure, | |
56 CookiePriority priority); | 55 CookiePriority priority); |
57 | 56 |
58 // Creates a canonical cookie from unparsed attribute values. | 57 // Creates a canonical cookie from unparsed attribute values. |
59 // It does not do any validation. | 58 // It does not do any validation. |
60 static std::unique_ptr<CanonicalCookie> Create(const std::string& name, | 59 static std::unique_ptr<CanonicalCookie> Create(const std::string& name, |
61 const std::string& value, | 60 const std::string& value, |
62 const std::string& domain, | 61 const std::string& domain, |
63 const std::string& path, | 62 const std::string& path, |
64 const base::Time& creation, | 63 const base::Time& creation, |
65 const base::Time& expiration, | 64 const base::Time& expiration, |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 bool httponly_; | 213 bool httponly_; |
215 CookieSameSite same_site_; | 214 CookieSameSite same_site_; |
216 CookiePriority priority_; | 215 CookiePriority priority_; |
217 }; | 216 }; |
218 | 217 |
219 typedef std::vector<CanonicalCookie> CookieList; | 218 typedef std::vector<CanonicalCookie> CookieList; |
220 | 219 |
221 } // namespace net | 220 } // namespace net |
222 | 221 |
223 #endif // NET_COOKIES_CANONICAL_COOKIE_H_ | 222 #endif // NET_COOKIES_CANONICAL_COOKIE_H_ |
OLD | NEW |