blob: 0b7c5d3778f1f1cb1b87bc4ec637a7bdfa14f763 [file] [log] [blame]
[email protected]e6d017652013-05-17 18:01:401// 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
8namespace net {
9
10// Privacy Mode is enabled if cookies to particular site are blocked, so
[email protected]fb35b0a2014-04-15 21:06:4911// Channel ID is disabled on that connection (https, spdy or quic).
[email protected]e6d017652013-05-17 18:01:4012enum PrivacyMode {
[email protected]314b03992014-04-01 01:28:5313 PRIVACY_MODE_DISABLED = 0,
14 PRIVACY_MODE_ENABLED = 1,
Rayan Kanso90e6b602020-07-09 18:15:5415
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 Cutler86f47b02022-01-21 01:12:2219
20 // Privacy mode is enabled but partitioned HTTP cookies are still allowed.
21 PRIVACY_MODE_ENABLED_PARTITIONED_STATE_ALLOWED = 3,
[email protected]e6d017652013-05-17 18:01:4022};
23
David Benjaminf6f04312020-07-15 00:19:2124const char* PrivacyModeToDebugString(PrivacyMode privacy_mode);
25
Nico Weber6d78b232019-02-05 19:55:4926} // namespace net
[email protected]e6d017652013-05-17 18:01:4027
28#endif // NET_BASE_PRIVACY_MODE_H_