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

Unified Diff: content/browser/service_worker/service_worker_context_wrapper.cc

Issue 2497983002: PaymentApp: Implement PaymentAppManager.setManifest(). (Closed)
Patch Set: rebase Created 4 years, 1 month 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/browser/service_worker/service_worker_context_wrapper.cc
diff --git a/content/browser/service_worker/service_worker_context_wrapper.cc b/content/browser/service_worker/service_worker_context_wrapper.cc
index 686e5ea57d812ca1b2461f4a348a9b5a95ed8a02..0aeb9ed2429b6dd5fa65679b9a479ce4a106d184 100644
--- a/content/browser/service_worker/service_worker_context_wrapper.cc
+++ b/content/browser/service_worker/service_worker_context_wrapper.cc
@@ -681,6 +681,20 @@ void ServiceWorkerContextWrapper::FindReadyRegistrationForDocument(
this, callback));
}
+void ServiceWorkerContextWrapper::FindReadyRegistrationForPattern(
+ const GURL& scope,
+ const FindRegistrationCallback& callback) {
+ DCHECK_CURRENTLY_ON(BrowserThread::IO);
+ if (!context_core_) {
+ RunSoon(base::Bind(callback, SERVICE_WORKER_ERROR_ABORT, nullptr));
+ return;
+ }
+ context_core_->storage()->FindRegistrationForPattern(
+ net::SimplifyUrlForRequest(scope),
+ base::Bind(&ServiceWorkerContextWrapper::DidFindRegistrationForFindReady,
+ this, callback));
+}
+
void ServiceWorkerContextWrapper::FindReadyRegistrationForId(
int64_t registration_id,
const GURL& origin,
« no previous file with comments | « content/browser/service_worker/service_worker_context_wrapper.h ('k') | content/browser/storage_partition_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698