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

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

Issue 1615773005: Rename first-party-only cookies to same-site cookies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tests. Created 4 years, 11 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 <stddef.h> 10 #include <stddef.h>
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 DELETE_COOKIE_NON_SECURE, 372 DELETE_COOKIE_NON_SECURE,
373 373
374 DELETE_COOKIE_LAST_ENTRY 374 DELETE_COOKIE_LAST_ENTRY
375 }; 375 };
376 376
377 // This enum is used to generate a histogramed bitmask measureing the types 377 // This enum is used to generate a histogramed bitmask measureing the types
378 // of stored cookies. Please do not reorder the list when adding new entries. 378 // of stored cookies. Please do not reorder the list when adding new entries.
379 // New items MUST be added at the end of the list, just before 379 // New items MUST be added at the end of the list, just before
380 // COOKIE_TYPE_LAST_ENTRY; 380 // COOKIE_TYPE_LAST_ENTRY;
381 enum CookieType { 381 enum CookieType {
382 COOKIE_TYPE_FIRSTPARTYONLY = 0, 382 COOKIE_TYPE_SAME_SITE = 0,
383 COOKIE_TYPE_HTTPONLY, 383 COOKIE_TYPE_HTTPONLY,
384 COOKIE_TYPE_SECURE, 384 COOKIE_TYPE_SECURE,
385 COOKIE_TYPE_LAST_ENTRY 385 COOKIE_TYPE_LAST_ENTRY
386 }; 386 };
387 387
388 // Used to populate a histogram containing information about the 388 // Used to populate a histogram containing information about the
389 // sources of Secure and non-Secure cookies: that is, whether such 389 // sources of Secure and non-Secure cookies: that is, whether such
390 // cookies are set by origins with cryptographic or non-cryptographic 390 // cookies are set by origins with cryptographic or non-cryptographic
391 // schemes. Please do not reorder the list when adding new 391 // schemes. Please do not reorder the list when adding new
392 // entries. New items MUST be added at the end of the list, just 392 // entries. New items MUST be added at the end of the list, just
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
850 virtual ~PersistentCookieStore() {} 850 virtual ~PersistentCookieStore() {}
851 851
852 private: 852 private:
853 friend class base::RefCountedThreadSafe<PersistentCookieStore>; 853 friend class base::RefCountedThreadSafe<PersistentCookieStore>;
854 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore); 854 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore);
855 }; 855 };
856 856
857 } // namespace net 857 } // namespace net
858 858
859 #endif // NET_COOKIES_COOKIE_MONSTER_H_ 859 #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