| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |