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

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

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_storage.h
diff --git a/content/browser/service_worker/service_worker_storage.h b/content/browser/service_worker/service_worker_storage.h
index d08e533094c38ffb5ca898a7e3a667c39dd14a83..fdf6fb5f9fcb1a3dc20421acedc61969b67611e8 100644
--- a/content/browser/service_worker/service_worker_storage.h
+++ b/content/browser/service_worker/service_worker_storage.h
@@ -181,11 +181,15 @@ class CONTENT_EXPORT ServiceWorkerStorage
// Provide a storage mechanism to read/write arbitrary data associated with
// a registration. Each registration has its own key namespace.
- // GetUserData responds OK only if all keys are found; otherwise NOT_FOUND,
- // and the callback's data will be empty.
+ // GetUserData/GetUserDataByKeyPrefix responds OK only if all keys are found;
+ // otherwise NOT_FOUND, and the callback's data will be empty.
void GetUserData(int64_t registration_id,
const std::vector<std::string>& keys,
const GetUserDataCallback& callback);
+ void GetUserDataByKeyPrefix(int64_t registration_id,
+ const std::string& key_prefix,
+ const GetUserDataCallback& callback);
+
// Stored data is deleted when the associated registraton is deleted.
void StoreUserData(
int64_t registration_id,
@@ -499,6 +503,12 @@ class CONTENT_EXPORT ServiceWorkerStorage
int64_t registration_id,
const std::vector<std::string>& keys,
const GetUserDataInDBCallback& callback);
+ static void GetUserDataByKeyPrefixInDB(
+ ServiceWorkerDatabase* database,
+ scoped_refptr<base::SequencedTaskRunner> original_task_runner,
+ int64_t registration_id,
+ const std::string& key_prefix,
+ const GetUserDataInDBCallback& callback);
static void GetUserDataForAllRegistrationsInDB(
ServiceWorkerDatabase* database,
scoped_refptr<base::SequencedTaskRunner> original_task_runner,
« no previous file with comments | « content/browser/service_worker/service_worker_database.cc ('k') | content/browser/service_worker/service_worker_storage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698