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

Unified Diff: content/browser/payments/payment_app_manager.h

Issue 2506093002: PaymentApp: Implement PaymentAppManager.getManifest(). (Closed)
Patch Set: PaymentApp: Implement PaymentAppManager.getManifest(). Created 4 years, 1 month 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 | « components/payments/payment_app.mojom ('k') | content/browser/payments/payment_app_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/payments/payment_app_manager.h
diff --git a/content/browser/payments/payment_app_manager.h b/content/browser/payments/payment_app_manager.h
index 95168319f5d2227805110aa4da56e21c9f44bec4..28d2e855a0d32b4f53c709fc40242bd0f0e33125 100644
--- a/content/browser/payments/payment_app_manager.h
+++ b/content/browser/payments/payment_app_manager.h
@@ -30,10 +30,15 @@ class CONTENT_EXPORT PaymentAppManager
private:
friend class PaymentAppManagerTest;
+
// payments::mojom::PaymentAppManager methods:
void SetManifest(const std::string& scope,
payments::mojom::PaymentAppManifestPtr manifest,
const SetManifestCallback& callback) override;
+ void GetManifest(const std::string& scope,
+ const GetManifestCallback& callback) override;
+
+ // SetManifest callbacks
void DidFindRegistrationToSetManifest(
payments::mojom::PaymentAppManifestPtr manifest,
const SetManifestCallback& callback,
@@ -42,10 +47,19 @@ class CONTENT_EXPORT PaymentAppManager
void DidSetManifest(const SetManifestCallback& callback,
ServiceWorkerStatusCode status);
+ // GetManifest callbacks
+ void DidFindRegistrationToGetManifest(
+ const GetManifestCallback& callback,
+ ServiceWorkerStatusCode status,
+ scoped_refptr<ServiceWorkerRegistration> registration);
+ void DidGetManifest(const GetManifestCallback& callback,
+ const std::vector<std::string>& data,
+ ServiceWorkerStatusCode status);
+
// Called when an error is detected on binding_.
void OnConnectionError();
- // payment_app_context_ owns this.
+ // PaymentAppContext owns PaymentAppManager
PaymentAppContext* payment_app_context_;
mojo::Binding<payments::mojom::PaymentAppManager> binding_;
« no previous file with comments | « components/payments/payment_app.mojom ('k') | content/browser/payments/payment_app_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698