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

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

Issue 2873683002: PaymentHandler: Implement GetAllPaymentApps(). (Closed)
Patch Set: installed -> stored in public Created 3 years, 7 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/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 352818bd106e2edc6561602068eecdcc2bbda9d5..a27d006e613c511fde81a788287217ff71b9bad5 100644
--- a/content/browser/service_worker/service_worker_context_wrapper.cc
+++ b/content/browser/service_worker/service_worker_context_wrapper.cc
@@ -725,6 +725,19 @@ void ServiceWorkerContextWrapper::GetUserDataForAllRegistrations(
context_core_->storage()->GetUserDataForAllRegistrations(key, callback);
}
+void ServiceWorkerContextWrapper::GetUserDataForAllRegistrationsByKeyPrefix(
+ const std::string& key_prefix,
+ const GetUserDataForAllRegistrationsCallback& callback) {
+ DCHECK_CURRENTLY_ON(BrowserThread::IO);
+ if (!context_core_) {
+ RunSoon(base::Bind(callback, std::vector<std::pair<int64_t, std::string>>(),
+ SERVICE_WORKER_ERROR_ABORT));
+ return;
+ }
+ context_core_->storage()->GetUserDataForAllRegistrationsByKeyPrefix(
+ key_prefix, callback);
+}
+
void ServiceWorkerContextWrapper::AddObserver(
ServiceWorkerContextObserver* observer) {
observer_list_->AddObserver(observer);

Powered by Google App Engine
This is Rietveld 408576698