| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef NET_BASE_STATIC_COOKIE_POLICY_H_ | 5 #ifndef NET_BASE_STATIC_COOKIE_POLICY_H_ |
| 6 #define NET_BASE_STATIC_COOKIE_POLICY_H_ | 6 #define NET_BASE_STATIC_COOKIE_POLICY_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "net/base/net_api.h" | 10 #include "net/base/net_export.h" |
| 11 | 11 |
| 12 class GURL; | 12 class GURL; |
| 13 | 13 |
| 14 namespace net { | 14 namespace net { |
| 15 | 15 |
| 16 // The StaticCookiePolicy class implements a static cookie policy that supports | 16 // The StaticCookiePolicy class implements a static cookie policy that supports |
| 17 // three modes: allow all, deny all, or block third-party cookies. | 17 // three modes: allow all, deny all, or block third-party cookies. |
| 18 class NET_API StaticCookiePolicy { | 18 class NET_EXPORT StaticCookiePolicy { |
| 19 public: | 19 public: |
| 20 // Do not change the order of these types as they are persisted in | 20 // Do not change the order of these types as they are persisted in |
| 21 // preferences. | 21 // preferences. |
| 22 enum Type { | 22 enum Type { |
| 23 // Do not perform any cookie blocking. | 23 // Do not perform any cookie blocking. |
| 24 ALLOW_ALL_COOKIES = 0, | 24 ALLOW_ALL_COOKIES = 0, |
| 25 // Prevent only third-party cookies from being set. | 25 // Prevent only third-party cookies from being set. |
| 26 BLOCK_SETTING_THIRD_PARTY_COOKIES, | 26 BLOCK_SETTING_THIRD_PARTY_COOKIES, |
| 27 // Block all cookies (third-party or not) from begin set or read. | 27 // Block all cookies (third-party or not) from begin set or read. |
| 28 BLOCK_ALL_COOKIES, | 28 BLOCK_ALL_COOKIES, |
| (...skipping 25 matching lines...) Expand all Loading... |
| 54 | 54 |
| 55 private: | 55 private: |
| 56 Type type_; | 56 Type type_; |
| 57 | 57 |
| 58 DISALLOW_COPY_AND_ASSIGN(StaticCookiePolicy); | 58 DISALLOW_COPY_AND_ASSIGN(StaticCookiePolicy); |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace net | 61 } // namespace net |
| 62 | 62 |
| 63 #endif // NET_BASE_STATIC_COOKIE_POLICY_H_ | 63 #endif // NET_BASE_STATIC_COOKIE_POLICY_H_ |
| OLD | NEW |