Home | History | Annotate | Download | only in service_worker

Lines Matching refs:scope

24 bool ServiceWorkerUtils::ScopeMatches(const GURL& scope, const GURL& url) {
25 DCHECK(!scope.has_ref());
27 const std::string& scope_spec = scope.spec();
36 bool LongestScopeMatcher::MatchLongest(const GURL& scope) {
37 if (!ServiceWorkerUtils::ScopeMatches(scope, url_))
40 match_ = scope;
45 const std::string scope_spec = scope.spec();
47 match_ = scope;
51 // If |scope| has the same length with |match_|, they are compared as strings.
58 match_ = scope;