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

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

Issue 876973003: Implement the "first-party-only" cookie flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: FirstPartyOnly. Created 5 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/canonical_cookie_unittest.cc ('k') | net/cookies/cookie_monster.cc » ('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 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 // cookie value attribute) and will return false without setting the cookie 161 // cookie value attribute) and will return false without setting the cookie
162 // if such characters are found. 162 // if such characters are found.
163 void SetCookieWithDetailsAsync(const GURL& url, 163 void SetCookieWithDetailsAsync(const GURL& url,
164 const std::string& name, 164 const std::string& name,
165 const std::string& value, 165 const std::string& value,
166 const std::string& domain, 166 const std::string& domain,
167 const std::string& path, 167 const std::string& path,
168 const base::Time& expiration_time, 168 const base::Time& expiration_time,
169 bool secure, 169 bool secure,
170 bool http_only, 170 bool http_only,
171 bool first_party,
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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 // delegate either immediately (if the store is loaded) or through a deferred 415 // delegate either immediately (if the store is loaded) or through a deferred
415 // task (if the store is not yet loaded). 416 // task (if the store is not yet loaded).
416 bool SetCookieWithDetails(const GURL& url, 417 bool SetCookieWithDetails(const GURL& url,
417 const std::string& name, 418 const std::string& name,
418 const std::string& value, 419 const std::string& value,
419 const std::string& domain, 420 const std::string& domain,
420 const std::string& path, 421 const std::string& path,
421 const base::Time& expiration_time, 422 const base::Time& expiration_time,
422 bool secure, 423 bool secure,
423 bool http_only, 424 bool http_only,
425 bool first_party,
424 CookiePriority priority); 426 CookiePriority priority);
425 427
426 CookieList GetAllCookies(); 428 CookieList GetAllCookies();
427 429
428 CookieList GetAllCookiesForURLWithOptions(const GURL& url, 430 CookieList GetAllCookiesForURLWithOptions(const GURL& url,
429 const CookieOptions& options); 431 const CookieOptions& options);
430 432
431 CookieList GetAllCookiesForURL(const GURL& url); 433 CookieList GetAllCookiesForURL(const GURL& url);
432 434
433 int DeleteAll(bool sync_to_store); 435 int DeleteAll(bool sync_to_store);
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
786 virtual ~PersistentCookieStore() {} 788 virtual ~PersistentCookieStore() {}
787 789
788 private: 790 private:
789 friend class base::RefCountedThreadSafe<PersistentCookieStore>; 791 friend class base::RefCountedThreadSafe<PersistentCookieStore>;
790 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore); 792 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore);
791 }; 793 };
792 794
793 } // namespace net 795 } // namespace net
794 796
795 #endif // NET_COOKIES_COOKIE_MONSTER_H_ 797 #endif // NET_COOKIES_COOKIE_MONSTER_H_
OLDNEW
« no previous file with comments | « net/cookies/canonical_cookie_unittest.cc ('k') | net/cookies/cookie_monster.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698