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 9155f4f8c5748090c44ae8487cb4e7775390208d..dfd9796c2176b277d3518e7fb9e5cb3ac3596f7e 100644 |
--- a/content/browser/payments/payment_app_database.h |
+++ b/content/browser/payments/payment_app_database.h |
@@ -32,6 +32,11 @@ class CONTENT_EXPORT PaymentAppDatabase { |
std::pair<int64_t, payments::mojom::PaymentAppManifestPtr>; |
using Manifests = std::vector<ManifestWithID>; |
using ReadAllManifestsCallback = base::Callback<void(Manifests)>; |
+ |
+ using Instruments = std::vector<payments::mojom::PaymentInstrumentPtr>; |
+ using PaymentApps = std::map<GURL, Instruments>; |
+ using ReadAllPaymentAppsCallback = base::OnceCallback<void(PaymentApps)>; |
+ |
using DeletePaymentInstrumentCallback = |
base::OnceCallback<void(payments::mojom::PaymentHandlerStatus)>; |
using ReadPaymentInstrumentCallback = |
@@ -56,6 +61,9 @@ class CONTENT_EXPORT PaymentAppDatabase { |
const WriteManifestCallback& callback); |
void ReadManifest(const GURL& scope, const ReadManifestCallback& callback); |
void ReadAllManifests(const ReadAllManifestsCallback& callback); |
+ |
+ void ReadAllPaymentApps(ReadAllPaymentAppsCallback callback); |
+ |
void DeletePaymentInstrument(const GURL& scope, |
const std::string& instrument_key, |
DeletePaymentInstrumentCallback callback); |
@@ -99,6 +107,12 @@ class CONTENT_EXPORT PaymentAppDatabase { |
const std::vector<std::pair<int64_t, std::string>>& raw_data, |
ServiceWorkerStatusCode status); |
+ // ReadAllPaymentApps callbacks |
+ void DidReadAllPaymentApps( |
+ ReadAllPaymentAppsCallback callback, |
+ const std::vector<std::pair<int64_t, std::string>>& raw_data, |
+ ServiceWorkerStatusCode status); |
+ |
// DeletePaymentInstrument callbacks |
void DidFindRegistrationToDeletePaymentInstrument( |
const std::string& instrument_key, |