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

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: Missed a few. 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
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 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 DELETE_COOKIE_NON_SECURE, 410 DELETE_COOKIE_NON_SECURE,
411 411
412 DELETE_COOKIE_LAST_ENTRY 412 DELETE_COOKIE_LAST_ENTRY
413 }; 413 };
414 414
415 // This enum is used to generate a histogramed bitmask measureing the types 415 // This enum is used to generate a histogramed bitmask measureing the types
416 // of stored cookies. Please do not reorder the list when adding new entries. 416 // of stored cookies. Please do not reorder the list when adding new entries.
417 // New items MUST be added at the end of the list, just before 417 // New items MUST be added at the end of the list, just before
418 // COOKIE_TYPE_LAST_ENTRY; 418 // COOKIE_TYPE_LAST_ENTRY;
419 enum CookieType { 419 enum CookieType {
420 COOKIE_TYPE_FIRSTPARTYONLY = 0, 420 COOKIE_TYPE_SAMESITE = 0,
mmenke 2016/01/25 18:47:10 SAME_SITE
Mike West 2016/01/26 11:05:45 Done.
421 COOKIE_TYPE_HTTPONLY, 421 COOKIE_TYPE_HTTPONLY,
422 COOKIE_TYPE_SECURE, 422 COOKIE_TYPE_SECURE,
423 COOKIE_TYPE_LAST_ENTRY 423 COOKIE_TYPE_LAST_ENTRY
424 }; 424 };
425 425
426 // Used to populate a histogram containing information about the 426 // Used to populate a histogram containing information about the
427 // sources of Secure and non-Secure cookies: that is, whether such 427 // sources of Secure and non-Secure cookies: that is, whether such
428 // cookies are set by origins with cryptographic or non-cryptographic 428 // cookies are set by origins with cryptographic or non-cryptographic
429 // schemes. Please do not reorder the list when adding new 429 // schemes. Please do not reorder the list when adding new
430 // entries. New items MUST be added at the end of the list, just 430 // 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
888 virtual ~PersistentCookieStore() {} 888 virtual ~PersistentCookieStore() {}
889 889
890 private: 890 private:
891 friend class base::RefCountedThreadSafe<PersistentCookieStore>; 891 friend class base::RefCountedThreadSafe<PersistentCookieStore>;
892 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore); 892 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore);
893 }; 893 };
894 894
895 } // namespace net 895 } // namespace net
896 896
897 #endif // NET_COOKIES_COOKIE_MONSTER_H_ 897 #endif // NET_COOKIES_COOKIE_MONSTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698