commit | df6d1bf21f9b1e30c9d50a7697d6dc869c36097a | [log] [tgz] |
---|---|---|
author | jungkee.song <jungkee.song@samsung.com> | Thu Jun 11 03:52:09 2015 |
committer | Commit bot <commit-bot@chromium.org> | Thu Jun 11 03:52:49 2015 |
tree | c0cc5c2f87e4ca907d6666619322356e676da9ea | |
parent | ba25c468ae5a4720a848580d5b5c43e8131ee018 [diff] |
Service Worker: Add ServiceWorkerContainer.getRegistrations() method. Implement ServiceWorkerContainer.getReistrations() method as per spec: https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#navigator-service-worker-getRegistrations In this patch, ServiceWorkerDatabase::GetRegistrationsForOrigin() has been changed to additionally retrieving resources so a newly added ServiceWorkerStorage::DiDGetRegistrations() can get all the stored real registrations by calling ServiceWorkerStorage::GetOrCreateRegistration(). ServiceWorkerStorage::DidGetRegistrationsInfos() remained as-is used by ServiceWorkerStorage::GetAllRegistrationsInfos() to get a vector of ServiceWorkerRegistrationInfo objects. Companion CL (Blink): https://codereview.chromium.org/1165363003/ Companion CL (Blink layout tests): https://codereview.chromium.org/1168393002/ BUG=478382 Review URL: https://codereview.chromium.org/1146913004 Cr-Commit-Position: refs/heads/master@{#333886}