#include "components/policy/core/browser/url_allowlist_policy_handler.h"
#include <memory>
#include <utility>
#include <vector>
#include "base/logging.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/values.h"
#include "components/policy/core/browser/policy_error_map.h"
#include "components/policy/core/common/policy_map.h"
#include "components/policy/core/common/policy_pref_names.h"
#include "components/policy/policy_constants.h"
#include "components/prefs/pref_value_map.h"
#include "components/strings/grit/components_strings.h"
#include "components/url_matcher/url_util.h"
namespace {
bool ValidateHost(const std::string& host) { … }
}
namespace policy {
URLAllowlistPolicyHandler::URLAllowlistPolicyHandler(const char* policy_name)
: … { … }
URLAllowlistPolicyHandler::~URLAllowlistPolicyHandler() = default;
bool URLAllowlistPolicyHandler::CheckPolicySettings(const PolicyMap& policies,
PolicyErrorMap* errors) { … }
void URLAllowlistPolicyHandler::ApplyPolicySettings(const PolicyMap& policies,
PrefValueMap* prefs) { … }
bool URLAllowlistPolicyHandler::ValidatePolicy(const std::string& url_pattern) { … }
}