Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1421)

Unified Diff: content/child/service_worker/web_service_worker_provider_impl.cc

Issue 1146913004: Service Worker: Add ServiceWorkerContainer.getRegistrations() method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update tools/metrics/histograms/histograms.xml. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/child/service_worker/web_service_worker_provider_impl.cc
diff --git a/content/child/service_worker/web_service_worker_provider_impl.cc b/content/child/service_worker/web_service_worker_provider_impl.cc
index 96185668c0ec5f38b6cadf53376601a33708e30e..736379626fc0e40fa1bf22194f84052fe81aebfb 100644
--- a/content/child/service_worker/web_service_worker_provider_impl.cc
+++ b/content/child/service_worker/web_service_worker_provider_impl.cc
@@ -71,6 +71,12 @@ void WebServiceWorkerProviderImpl::getRegistration(
context_->provider_id(), document_url, callbacks);
}
+void WebServiceWorkerProviderImpl::getRegistrations(
+ WebServiceWorkerGetRegistrationsCallbacks* callbacks) {
+ GetDispatcher()->GetRegistrations(
+ context_->provider_id(), callbacks);
+}
+
void WebServiceWorkerProviderImpl::getRegistrationForReady(
WebServiceWorkerGetRegistrationForReadyCallbacks* callbacks) {
GetDispatcher()->GetRegistrationForReady(context_->provider_id(), callbacks);

Powered by Google App Engine
This is Rietveld 408576698