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

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: test fix 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 // if such characters are found. 160 // if such characters are found.
161 void SetCookieWithDetailsAsync(const GURL& url, 161 void SetCookieWithDetailsAsync(const GURL& url,
162 const std::string& name, 162 const std::string& name,
163 const std::string& value, 163 const std::string& value,
164 const std::string& domain, 164 const std::string& domain,
165 const std::string& path, 165 const std::string& path,
166 const base::Time& expiration_time, 166 const base::Time& expiration_time,
167 bool secure, 167 bool secure,
168 bool http_only, 168 bool http_only,
169 bool first_party, 169 bool first_party,
170 bool enforce_prefixes,
170 CookiePriority priority, 171 CookiePriority priority,
171 const SetCookiesCallback& callback); 172 const SetCookiesCallback& callback);
172 173
173 // Returns all the cookies, for use in management UI, etc. This does not mark 174 // Returns all the cookies, for use in management UI, etc. This does not mark
174 // the cookies as having been accessed. 175 // the cookies as having been accessed.
175 // The returned cookies are ordered by longest path, then by earliest 176 // The returned cookies are ordered by longest path, then by earliest
176 // creation date. 177 // creation date.
177 void GetAllCookiesAsync(const GetCookieListCallback& callback); 178 void GetAllCookiesAsync(const GetCookieListCallback& callback);
178 179
179 // Returns all the cookies, for use in management UI, etc. Filters results 180 // Returns all the cookies, for use in management UI, etc. Filters results
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 // task (if the store is not yet loaded). 458 // task (if the store is not yet loaded).
458 bool SetCookieWithDetails(const GURL& url, 459 bool SetCookieWithDetails(const GURL& url,
459 const std::string& name, 460 const std::string& name,
460 const std::string& value, 461 const std::string& value,
461 const std::string& domain, 462 const std::string& domain,
462 const std::string& path, 463 const std::string& path,
463 const base::Time& expiration_time, 464 const base::Time& expiration_time,
464 bool secure, 465 bool secure,
465 bool http_only, 466 bool http_only,
466 bool first_party, 467 bool first_party,
468 bool enforce_prefixes,
467 CookiePriority priority); 469 CookiePriority priority);
468 470
469 CookieList GetAllCookies(); 471 CookieList GetAllCookies();
470 472
471 CookieList GetAllCookiesForURLWithOptions(const GURL& url, 473 CookieList GetAllCookiesForURLWithOptions(const GURL& url,
472 const CookieOptions& options); 474 const CookieOptions& options);
473 475
474 CookieList GetAllCookiesForURL(const GURL& url); 476 CookieList GetAllCookiesForURL(const GURL& url);
475 477
476 int DeleteAll(bool sync_to_store); 478 int DeleteAll(bool sync_to_store);
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
835 virtual ~PersistentCookieStore() {} 837 virtual ~PersistentCookieStore() {}
836 838
837 private: 839 private:
838 friend class base::RefCountedThreadSafe<PersistentCookieStore>; 840 friend class base::RefCountedThreadSafe<PersistentCookieStore>;
839 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore); 841 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore);
840 }; 842 };
841 843
842 } // namespace net 844 } // namespace net
843 845
844 #endif // NET_COOKIES_COOKIE_MONSTER_H_ 846 #endif // NET_COOKIES_COOKIE_MONSTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698