[email protected] | e6d01765 | 2013-05-17 18:01:40 | [diff] [blame] | 1 | // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 | // Use of this source code is governed by a BSD-style license that can be | ||||
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | #ifndef NET_BASE_PRIVACY_MODE_H_ | ||||
6 | #define NET_BASE_PRIVACY_MODE_H_ | ||||
7 | |||||
8 | namespace net { | ||||
9 | |||||
10 | // Privacy Mode is enabled if cookies to particular site are blocked, so | ||||
[email protected] | fb35b0a | 2014-04-15 21:06:49 | [diff] [blame] | 11 | // Channel ID is disabled on that connection (https, spdy or quic). |
[email protected] | e6d01765 | 2013-05-17 18:01:40 | [diff] [blame] | 12 | enum PrivacyMode { |
[email protected] | 314b0399 | 2014-04-01 01:28:53 | [diff] [blame] | 13 | PRIVACY_MODE_DISABLED = 0, |
14 | PRIVACY_MODE_ENABLED = 1, | ||||
Rayan Kanso | 90e6b60 | 2020-07-09 18:15:54 | [diff] [blame] | 15 | |
16 | // Due to http://crbug.com/775438, PRIVACY_MODE_ENABLED still sends client | ||||
17 | // certs. This mode ensures that the request is sent without client certs. | ||||
18 | PRIVACY_MODE_ENABLED_WITHOUT_CLIENT_CERTS = 2, | ||||
Dylan Cutler | 86f47b0 | 2022-01-21 01:12:22 | [diff] [blame] | 19 | |
20 | // Privacy mode is enabled but partitioned HTTP cookies are still allowed. | ||||
21 | PRIVACY_MODE_ENABLED_PARTITIONED_STATE_ALLOWED = 3, | ||||
[email protected] | e6d01765 | 2013-05-17 18:01:40 | [diff] [blame] | 22 | }; |
23 | |||||
David Benjamin | f6f0431 | 2020-07-15 00:19:21 | [diff] [blame] | 24 | const char* PrivacyModeToDebugString(PrivacyMode privacy_mode); |
25 | |||||
Nico Weber | 6d78b23 | 2019-02-05 19:55:49 | [diff] [blame] | 26 | } // namespace net |
[email protected] | e6d01765 | 2013-05-17 18:01:40 | [diff] [blame] | 27 | |
28 | #endif // NET_BASE_PRIVACY_MODE_H_ |