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

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

Issue 2850203002: PaymentHandler: Implement PaymentInstruments.keys(). (Closed)
Patch Set: PaymentHandler: Implement PaymentInstruments.Keys(). Created 3 years, 8 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 04c021d0148c13f5c47251ee59cc63e3d10b4146..352818bd106e2edc6561602068eecdcc2bbda9d5 100644
--- a/content/browser/service_worker/service_worker_context_wrapper.cc
+++ b/content/browser/service_worker/service_worker_context_wrapper.cc
@@ -673,6 +673,20 @@ void ServiceWorkerContextWrapper::GetRegistrationUserData(
context_core_->storage()->GetUserData(registration_id, keys, callback);
}
+void ServiceWorkerContextWrapper::GetRegistrationUserDataByKeyPrefix(
+ int64_t registration_id,
+ const std::string& key_prefix,
+ const GetUserDataCallback& callback) {
+ DCHECK_CURRENTLY_ON(BrowserThread::IO);
+ if (!context_core_) {
+ RunSoon(base::Bind(callback, std::vector<std::string>(),
+ SERVICE_WORKER_ERROR_ABORT));
+ return;
+ }
+ context_core_->storage()->GetUserDataByKeyPrefix(registration_id, key_prefix,
+ callback);
+}
+
void ServiceWorkerContextWrapper::StoreRegistrationUserData(
int64_t registration_id,
const GURL& origin,

Powered by Google App Engine
This is Rietveld 408576698