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

Unified Diff: content/browser/service_worker/service_worker_storage.h

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_storage.h
diff --git a/content/browser/service_worker/service_worker_storage.h b/content/browser/service_worker/service_worker_storage.h
index fdf6fb5f9fcb1a3dc20421acedc61969b67611e8..77b04af870ef3b1a2d18a3a5edb798fba00d216e 100644
--- a/content/browser/service_worker/service_worker_storage.h
+++ b/content/browser/service_worker/service_worker_storage.h
@@ -205,6 +205,11 @@ class CONTENT_EXPORT ServiceWorkerStorage
void GetUserDataForAllRegistrations(
const std::string& key,
const GetUserDataForAllRegistrationsCallback& callback);
+ // Responds with all registrations that have user data with a particular key,
+ // as well as that user data.
+ void GetUserDataForAllRegistrationsByKeyPrefix(
+ const std::string& key_prefix,
+ const GetUserDataForAllRegistrationsCallback& callback);
// Returns true if any service workers at |origin| have registered for foreign
// fetch.
@@ -514,6 +519,11 @@ class CONTENT_EXPORT ServiceWorkerStorage
scoped_refptr<base::SequencedTaskRunner> original_task_runner,
const std::string& key,
const GetUserDataForAllRegistrationsInDBCallback& callback);
+ static void GetUserDataForAllRegistrationsByKeyPrefixInDB(
+ ServiceWorkerDatabase* database,
+ scoped_refptr<base::SequencedTaskRunner> original_task_runner,
+ const std::string& key_prefix,
+ const GetUserDataForAllRegistrationsInDBCallback& callback);
static void DeleteAllDataForOriginsFromDB(
ServiceWorkerDatabase* database,
const std::set<GURL>& origins);

Powered by Google App Engine
This is Rietveld 408576698