123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- //
- // This file manually written from cef/include/internal/cef_types.h.
- // C API name: cef_referrer_policy_t.
- //
- namespace Xilium.CefGlue
- {
- /// <summary>
- /// Policy for how the Referrer HTTP header value will be sent during navigation.
- /// If the `--no-referrers` command-line flag is specified then the policy value
- /// will be ignored and the Referrer value will never be sent.
- /// Must be kept synchronized with net::URLRequest::ReferrerPolicy from Chromium.
- /// </summary>
- public enum CefReferrerPolicy
- {
- /// <summary>
- /// Clear the referrer header if the header value is HTTPS but the request
- /// destination is HTTP. This is the default behavior.
- /// </summary>
- ClearReferrerOnTransitionFromSecureToInsecure,
- /// <summary>
- /// Default policy (same as CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE).
- /// </summary>
- Default =
- ClearReferrerOnTransitionFromSecureToInsecure,
- /// <summary>
- /// A slight variant on CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE:
- /// If the request destination is HTTP, an HTTPS referrer will be cleared. If
- /// the request's destination is cross-origin with the referrer (but does not
- /// downgrade), the referrer's granularity will be stripped down to an origin
- /// rather than a full URL. Same-origin requests will send the full referrer.
- /// </summary>
- ReduceReferrerGranularityOnTransitionCrossOrigin,
- /// <summary>
- /// Strip the referrer down to an origin when the origin of the referrer is
- /// different from the destination's origin.
- /// </summary>
- OriginOnlyOnTransitionCrossOrigin,
- /// <summary>
- /// Never change the referrer.
- /// </summary>
- NeverClearReferrer,
- /// <summary>
- /// Strip the referrer down to the origin regardless of the redirect location.
- /// </summary>
- Origin,
- /// <summary>
- /// Clear the referrer when the request's referrer is cross-origin with the
- /// request's destination.
- /// </summary>
- ClearReferrerOnTransitionCrossOrigin,
- /// <summary>
- /// Strip the referrer down to the origin, but clear it entirely if the
- /// referrer value is HTTPS and the destination is HTTP.
- /// </summary>
- OriginClearOnTransitionFromSecureToInsecure,
- /// <summary>
- /// Always clear the referrer regardless of the request destination.
- /// </summary>
- NoReferrer,
- // Always the last value in this enumeration.
- LastValue = NoReferrer,
- }
- }
|