#include "components/policy/core/browser/url_blocklist_policy_handler.h"
#include <memory>
#include <optional>
#include <utility>
#include <vector>
#include "base/logging.h"
#include "base/strings/strcat.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/values.h"
#include "build/build_config.h"
#include "components/policy/core/browser/policy_error_map.h"
#include "components/policy/core/common/policy_logger.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 {
URLBlocklistPolicyHandler::URLBlocklistPolicyHandler(const char* policy_name)
: … { … }
URLBlocklistPolicyHandler::~URLBlocklistPolicyHandler() = default;
bool URLBlocklistPolicyHandler::CheckPolicySettings(const PolicyMap& policies,
PolicyErrorMap* errors) { … }
void URLBlocklistPolicyHandler::ApplyPolicySettings(const PolicyMap& policies,
PrefValueMap* prefs) { … }
bool URLBlocklistPolicyHandler::ValidatePolicy(const std::string& url_pattern) { … }
}