mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium version 93.0.4577.0 (#902210)
This commit is contained in:
@ -102,9 +102,9 @@ int GetCacheControlHeaderPolicy(CefRequest::HeaderMap headerMap) {
|
||||
|
||||
// Convert cef_urlrequest_flags_t to blink::WebCachePolicy.
|
||||
blink::mojom::FetchCacheMode GetFetchCacheMode(int ur_flags) {
|
||||
const bool skip_cache{ur_flags & UR_FLAG_SKIP_CACHE};
|
||||
const bool only_from_cache{ur_flags & UR_FLAG_ONLY_FROM_CACHE};
|
||||
const bool disable_cache{ur_flags & UR_FLAG_DISABLE_CACHE};
|
||||
const bool skip_cache{!!(ur_flags & UR_FLAG_SKIP_CACHE)};
|
||||
const bool only_from_cache{!!(ur_flags & UR_FLAG_ONLY_FROM_CACHE)};
|
||||
const bool disable_cache{!!(ur_flags & UR_FLAG_DISABLE_CACHE)};
|
||||
if (only_from_cache && (skip_cache || disable_cache)) {
|
||||
// The request will always fail because only_from_cache and
|
||||
// skip_cache/disable_cache are mutually exclusive.
|
||||
|
Reference in New Issue
Block a user