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

Unified Diff: content/browser/payments/payment_app_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
« no previous file with comments | « content/browser/payments/payment_app.proto ('k') | content/browser/payments/payment_app_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/payments/payment_app_database.h
diff --git a/content/browser/payments/payment_app_database.h b/content/browser/payments/payment_app_database.h
index 2635d3877cf51485828331836d56f7470cefedb0..9219e0bfb71cbb0b9777ed96bf304a4891cd5b1b 100644
--- a/content/browser/payments/payment_app_database.h
+++ b/content/browser/payments/payment_app_database.h
@@ -37,6 +37,9 @@ class CONTENT_EXPORT PaymentAppDatabase {
using ReadPaymentInstrumentCallback =
base::OnceCallback<void(payments::mojom::PaymentInstrumentPtr,
payments::mojom::PaymentHandlerStatus)>;
+ using KeysOfPaymentInstrumentsCallback =
+ base::OnceCallback<void(const std::vector<std::string>&,
+ payments::mojom::PaymentHandlerStatus)>;
using HasPaymentInstrumentCallback =
base::OnceCallback<void(payments::mojom::PaymentHandlerStatus)>;
using WritePaymentInstrumentCallback =
@@ -57,6 +60,8 @@ class CONTENT_EXPORT PaymentAppDatabase {
void ReadPaymentInstrument(const GURL& scope,
const std::string& instrument_key,
ReadPaymentInstrumentCallback callback);
+ void KeysOfPaymentInstruments(const GURL& scope,
+ KeysOfPaymentInstrumentsCallback callback);
void HasPaymentInstrument(const GURL& scope,
const std::string& instrument_key,
HasPaymentInstrumentCallback callback);
@@ -114,6 +119,15 @@ class CONTENT_EXPORT PaymentAppDatabase {
const std::vector<std::string>& data,
ServiceWorkerStatusCode status);
+ // KeysOfPaymentInstruments callbacks
+ void DidFindRegistrationToGetKeys(
+ KeysOfPaymentInstrumentsCallback callback,
+ ServiceWorkerStatusCode status,
+ scoped_refptr<ServiceWorkerRegistration> registration);
+ void DidGetKeysOfPaymentInstruments(KeysOfPaymentInstrumentsCallback callback,
+ const std::vector<std::string>& data,
+ ServiceWorkerStatusCode status);
+
// HasPaymentInstrument callbacks
void DidFindRegistrationToHasPaymentInstrument(
const std::string& instrument_key,
« no previous file with comments | « content/browser/payments/payment_app.proto ('k') | content/browser/payments/payment_app_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698