| Index: content/browser/service_worker/service_worker_utils.h
|
| diff --git a/content/browser/service_worker/service_worker_utils.h b/content/browser/service_worker/service_worker_utils.h
|
| index 38669c4317648145870670961284df7a64f50aed..66ee9b2e1985d17ac025d1798fb159a4c39d0019 100644
|
| --- a/content/browser/service_worker/service_worker_utils.h
|
| +++ b/content/browser/service_worker/service_worker_utils.h
|
| @@ -31,6 +31,11 @@ class ServiceWorkerUtils {
|
|
|
| // Returns true if |scope| matches |url|.
|
| CONTENT_EXPORT static bool ScopeMatches(const GURL& scope, const GURL& url);
|
| +
|
| + // Finds a scope that matches |url| longest from |scopes|. Returns true and
|
| + // fills |pos| with a position of the scope in |scopes| if it's found.
|
| + CONTENT_EXPORT static bool FindLongestScopeMatch(
|
| + const std::vector<GURL>& scopes, const GURL& url, size_t* pos);
|
| };
|
|
|
| } // namespace content
|
|
|