Move ServiceWorkerStorage::PatternMatches() to a static helper function
commit09379259c13d592ab926376aa802af0b562edd67
authorfalken@chromium.org <falken@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 11 Apr 2014 20:37:37 +0000 (11 20:37 +0000)
committerfalken@chromium.org <falken@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 11 Apr 2014 20:37:37 +0000 (11 20:37 +0000)
treed3faff6bf2e243b33d684769cff8cffba4f3ed88
parenta10c574bfd5d1b97a3b6bb1c5441631b089aeb0e
Move ServiceWorkerStorage::PatternMatches() to a static helper function

It will be needed by ServiceWorkerRegisterJob for finding in-scope
documents (bug 361565).

Also rename the function ScopeMatches in accordance with the spec terminology.

BUG=361564

Review URL: https://codereview.chromium.org/234493002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263341 0039d316-1c4b-4281-b951-d872f2087c98
content/browser/service_worker/service_worker_storage.cc
content/browser/service_worker/service_worker_storage.h
content/browser/service_worker/service_worker_storage_unittest.cc
content/browser/service_worker/service_worker_utils.cc
content/browser/service_worker/service_worker_utils.h
content/browser/service_worker/service_worker_utils_unittest.cc [new file with mode: 0644]
content/content_tests.gypi