Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: net/cookies/cookie_store.h

Issue 2633663003: Implements strict secure cookies as the default behavior in //net (Closed)
Patch Set: Rebase on ToT Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/cookies/cookie_options.cc ('k') | net/cookies/cookie_store_test_helpers.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 const std::string& name, 117 const std::string& name,
118 const std::string& value, 118 const std::string& value,
119 const std::string& domain, 119 const std::string& domain,
120 const std::string& path, 120 const std::string& path,
121 base::Time creation_time, 121 base::Time creation_time,
122 base::Time expiration_time, 122 base::Time expiration_time,
123 base::Time last_access_time, 123 base::Time last_access_time,
124 bool secure, 124 bool secure,
125 bool http_only, 125 bool http_only,
126 CookieSameSite same_site, 126 CookieSameSite same_site,
127 bool enforce_strict_secure,
128 CookiePriority priority, 127 CookiePriority priority,
129 const SetCookiesCallback& callback) = 0; 128 const SetCookiesCallback& callback) = 0;
130 129
131 // TODO(???): what if the total size of all the cookies >4k, can we have a 130 // TODO(???): what if the total size of all the cookies >4k, can we have a
132 // header that big or do we need multiple Cookie: headers? 131 // header that big or do we need multiple Cookie: headers?
133 // Note: Some sites, such as Facebook, occasionally use Cookie headers >4k. 132 // Note: Some sites, such as Facebook, occasionally use Cookie headers >4k.
134 // 133 //
135 // Simple interface, gets a cookie string "a=b; c=d" for the given URL. 134 // Simple interface, gets a cookie string "a=b; c=d" for the given URL.
136 // Gets all cookies that apply to |url| given |options|. Use options to 135 // Gets all cookies that apply to |url| given |options|. Use options to
137 // access httponly cookies. 136 // access httponly cookies.
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 int GetChannelIDServiceID(); 243 int GetChannelIDServiceID();
245 244
246 protected: 245 protected:
247 CookieStore(); 246 CookieStore();
248 int channel_id_service_id_; 247 int channel_id_service_id_;
249 }; 248 };
250 249
251 } // namespace net 250 } // namespace net
252 251
253 #endif // NET_COOKIES_COOKIE_STORE_H_ 252 #endif // NET_COOKIES_COOKIE_STORE_H_
OLDNEW
« no previous file with comments | « net/cookies/cookie_options.cc ('k') | net/cookies/cookie_store_test_helpers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698