#include "third_party/blink/public/common/custom_handlers/protocol_handler_utils.h"
#include <string_view>
#include "base/containers/contains.h"
#include "base/feature_list.h"
#include "base/strings/string_util.h"
#include "services/network/public/cpp/is_potentially_trustworthy.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/common/scheme_registry.h"
#include "third_party/blink/public/common/security/protocol_handler_security_level.h"
#include "url/gurl.h"
namespace blink {
const char kToken[] = …;
URLSyntaxErrorCode IsValidCustomHandlerURLSyntax(
const GURL& full_url,
const std::string_view& user_url) { … }
bool IsValidCustomHandlerScheme(const std::string_view scheme,
ProtocolHandlerSecurityLevel security_level,
bool* has_custom_scheme_prefix) { … }
bool IsAllowedCustomHandlerURL(const GURL& url,
ProtocolHandlerSecurityLevel security_level) { … }
}