1 // Copyright 2013 The Chromium Authors 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 11 // Channel ID is disabled on that connection (https, spdy or quic). 12 enum PrivacyMode { 13 PRIVACY_MODE_DISABLED = 0, 14 PRIVACY_MODE_ENABLED = 1, 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, 19 20 // Privacy mode is enabled but partitioned HTTP cookies are still allowed. 21 PRIVACY_MODE_ENABLED_PARTITIONED_STATE_ALLOWED = 3, 22 }; 23 24 const char* PrivacyModeToDebugString(PrivacyMode privacy_mode); 25 26 } // namespace net 27 28 #endif // NET_BASE_PRIVACY_MODE_H_ 29