chromium/third_party/blink/common/permissions_policy/permissions_policy_features_internal.cc

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/common/permissions_policy/permissions_policy_features_internal.h"

#include <stdint.h>

#include <string>

#include "base/feature_list.h"
#include "base/hash/hash.h"
#include "base/no_destructor.h"
#include "base/strings/string_split.h"
#include "third_party/blink/public/common/features.h"
#include "url/scheme_host_port.h"

namespace blink {

HostSet;

const HostSet UnloadDeprecationAllowedHosts() {}

// Return true if we should use EnabledForNone as the default for "unload"
// feature. This is special logic for https://crbug.com/1432116
// `bucket` is cast to a uint8_t, so there should be no more than 256 possible
// buckets.
bool IsIncludedInGradualRollout(const std::string& host,
                                int percent,
                                int bucket) {}

bool UnloadDeprecationAllowedForHost(const std::string& host,
                                     const HostSet& hosts) {}

bool UnloadDeprecationAllowedForOrigin(const url::Origin& origin) {}

}  // namespace blink