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

Unified Diff: content/browser/service_worker/service_worker_database.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_database.h
diff --git a/content/browser/service_worker/service_worker_database.h b/content/browser/service_worker/service_worker_database.h
index a4f208d32d28f6ebd159f160977859ed0fac032f..8eadc405fc4d598e99f45f752990012999371159 100644
--- a/content/browser/service_worker/service_worker_database.h
+++ b/content/browser/service_worker/service_worker_database.h
@@ -198,6 +198,13 @@ class CONTENT_EXPORT ServiceWorkerDatabase {
const std::vector<std::string>& user_data_names,
std::vector<std::string>* user_data_values);
+ // Reads user data for |registration_id| and |key_prefix| from the database.
+ // Returns OK only if keys matched to |key_prefix| are found; otherwise
+ // NOT_FOUND, and |user_data_values| will be empty.
+ Status ReadUserDataByKeyPrefix(int64_t registration_id,
+ const std::string key_prefix,
+ std::vector<std::string>* user_data_values);
+
// Writes |name_value_pairs| into the database. Returns NOT_FOUND if the
// registration specified by |registration_id| does not exist in the database.
Status WriteUserData(

Powered by Google App Engine
This is Rietveld 408576698