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

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

Issue 2497983002: PaymentApp: Implement PaymentAppManager.setManifest(). (Closed)
Patch Set: rebase 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 | « content/browser/payments/payment_app_context.cc ('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 7316c217e4774337eb23acabff79a8ce97dd1389..95168319f5d2227805110aa4da56e21c9f44bec4 100644
--- a/content/browser/payments/payment_app_manager.h
+++ b/content/browser/payments/payment_app_manager.h
@@ -11,11 +11,13 @@
#include "base/memory/weak_ptr.h"
#include "components/payments/payment_app.mojom.h"
#include "content/common/content_export.h"
+#include "content/common/service_worker/service_worker_status_code.h"
#include "mojo/public/cpp/bindings/binding.h"
namespace content {
class PaymentAppContext;
+class ServiceWorkerRegistration;
class CONTENT_EXPORT PaymentAppManager
: public NON_EXPORTED_BASE(payments::mojom::PaymentAppManager) {
@@ -27,10 +29,18 @@ class CONTENT_EXPORT PaymentAppManager
~PaymentAppManager() override;
private:
+ friend class PaymentAppManagerTest;
// payments::mojom::PaymentAppManager methods:
void SetManifest(const std::string& scope,
payments::mojom::PaymentAppManifestPtr manifest,
const SetManifestCallback& callback) override;
+ void DidFindRegistrationToSetManifest(
+ payments::mojom::PaymentAppManifestPtr manifest,
+ const SetManifestCallback& callback,
+ ServiceWorkerStatusCode status,
+ scoped_refptr<ServiceWorkerRegistration> registration);
+ void DidSetManifest(const SetManifestCallback& callback,
+ ServiceWorkerStatusCode status);
// Called when an error is detected on binding_.
void OnConnectionError();
« no previous file with comments | « content/browser/payments/payment_app_context.cc ('k') | content/browser/payments/payment_app_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698