#include "third_party/blink/public/common/service_worker/service_worker_scope_match.h"
#include "base/containers/contains.h"
#include "base/strings/string_util.h"
namespace blink {
namespace {
bool PathContainsDisallowedCharacter(const GURL& url) { … }
}
bool ServiceWorkerScopeOrScriptUrlContainsDisallowedCharacter(
const GURL& scope,
const GURL& script_url,
std::string* error_message) { … }
bool ServiceWorkerScopeMatches(const GURL& scope, const GURL& url) { … }
ServiceWorkerLongestScopeMatcher::ServiceWorkerLongestScopeMatcher(
const GURL& url)
: … { … }
ServiceWorkerLongestScopeMatcher::~ServiceWorkerLongestScopeMatcher() = default;
bool ServiceWorkerLongestScopeMatcher::MatchLongest(const GURL& scope) { … }
}