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); |