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 d27b7d838914bcd1999c0e681d38986f6ed810fe..faeab1f725b6e85f79397f88410156a134fb0ecb 100644 |
--- a/content/browser/payments/payment_app_database.h |
+++ b/content/browser/payments/payment_app_database.h |
@@ -28,6 +28,10 @@ class CONTENT_EXPORT PaymentAppDatabase { |
using ReadManifestCallback = |
base::Callback<void(payments::mojom::PaymentAppManifestPtr, |
payments::mojom::PaymentAppManifestError)>; |
+ using ManifestWithID = |
+ std::pair<int64_t, payments::mojom::PaymentAppManifestPtr>; |
+ using Manifests = std::vector<ManifestWithID>; |
+ using ReadAllManifestsCallback = base::Callback<void(Manifests)>; |
explicit PaymentAppDatabase( |
scoped_refptr<ServiceWorkerContextWrapper> service_worker_context); |
@@ -37,6 +41,7 @@ class CONTENT_EXPORT PaymentAppDatabase { |
payments::mojom::PaymentAppManifestPtr manifest, |
const WriteManifestCallback& callback); |
void ReadManifest(const GURL& scope, const ReadManifestCallback& callback); |
+ void ReadAllManifests(const ReadAllManifestsCallback& callback); |
private: |
// WriteManifest callbacks |
@@ -57,6 +62,12 @@ class CONTENT_EXPORT PaymentAppDatabase { |
const std::vector<std::string>& data, |
ServiceWorkerStatusCode status); |
+ // ReadAllManifests callbacks |
+ void DidReadAllManifests( |
+ const ReadAllManifestsCallback& callback, |
+ const std::vector<std::pair<int64_t, std::string>>& raw_data, |
+ ServiceWorkerStatusCode status); |
+ |
scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; |
base::WeakPtrFactory<PaymentAppDatabase> weak_ptr_factory_; |