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

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

Issue 1393193005: Implement $Secure- cookie prefix (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add another test Created 5 years, 2 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
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 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
161 // if such characters are found. 161 // if such characters are found.
162 void SetCookieWithDetailsAsync(const GURL& url, 162 void SetCookieWithDetailsAsync(const GURL& url,
163 const std::string& name, 163 const std::string& name,
164 const std::string& value, 164 const std::string& value,
165 const std::string& domain, 165 const std::string& domain,
166 const std::string& path, 166 const std::string& path,
167 const base::Time& expiration_time, 167 const base::Time& expiration_time,
168 bool secure, 168 bool secure,
169 bool http_only, 169 bool http_only,
170 bool first_party, 170 bool first_party,
171 bool enforce_prefixes,
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 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 // task (if the store is not yet loaded). 459 // task (if the store is not yet loaded).
459 bool SetCookieWithDetails(const GURL& url, 460 bool SetCookieWithDetails(const GURL& url,
460 const std::string& name, 461 const std::string& name,
461 const std::string& value, 462 const std::string& value,
462 const std::string& domain, 463 const std::string& domain,
463 const std::string& path, 464 const std::string& path,
464 const base::Time& expiration_time, 465 const base::Time& expiration_time,
465 bool secure, 466 bool secure,
466 bool http_only, 467 bool http_only,
467 bool first_party, 468 bool first_party,
469 bool enforce_prefixes,
468 CookiePriority priority); 470 CookiePriority priority);
469 471
470 CookieList GetAllCookies(); 472 CookieList GetAllCookies();
471 473
472 CookieList GetAllCookiesForURLWithOptions(const GURL& url, 474 CookieList GetAllCookiesForURLWithOptions(const GURL& url,
473 const CookieOptions& options); 475 const CookieOptions& options);
474 476
475 CookieList GetAllCookiesForURL(const GURL& url); 477 CookieList GetAllCookiesForURL(const GURL& url);
476 478
477 int DeleteAll(bool sync_to_store); 479 int DeleteAll(bool sync_to_store);
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
836 virtual ~PersistentCookieStore() {} 838 virtual ~PersistentCookieStore() {}
837 839
838 private: 840 private:
839 friend class base::RefCountedThreadSafe<PersistentCookieStore>; 841 friend class base::RefCountedThreadSafe<PersistentCookieStore>;
840 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore); 842 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore);
841 }; 843 };
842 844
843 } // namespace net 845 } // namespace net
844 846
845 #endif // NET_COOKIES_COOKIE_MONSTER_H_ 847 #endif // NET_COOKIES_COOKIE_MONSTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698