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

Unified Diff: content/public/browser/payment_app_provider.h

Issue 2875493003: PaymentHandler: Remove PaymentAppManifest and PaymentAppOption. (Closed)
Patch Set: global-interface-listing Created 3 years, 7 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
Index: content/public/browser/payment_app_provider.h
diff --git a/content/public/browser/payment_app_provider.h b/content/public/browser/payment_app_provider.h
index 42546f901d72d165280c533b6480fc10f0227e16..1d50554c5ce582045e6116e91e873310739306ac 100644
--- a/content/public/browser/payment_app_provider.h
+++ b/content/public/browser/payment_app_provider.h
@@ -32,25 +32,14 @@ class CONTENT_EXPORT PaymentAppProvider {
// Please see: content/browser/payments/payment_app_provider_impl.cc
static PaymentAppProvider* GetInstance();
- // The ManifestWithID is a pair of the service worker registration id and
- // the payment app manifest data associated with it.
- using ManifestWithID =
- std::pair<int64_t, payments::mojom::PaymentAppManifestPtr>;
- using Manifests = std::vector<ManifestWithID>;
-
using Instruments = std::vector<std::unique_ptr<StoredPaymentInstrument>>;
using PaymentApps = std::map<GURL, Instruments>;
- // TODO(zino): Consider to use base::OnceCallback instead of base::Callback.
- // Please see: http://crbug.com/704193
- using GetAllManifestsCallback = base::Callback<void(Manifests)>;
using GetAllPaymentAppsCallback = base::OnceCallback<void(PaymentApps)>;
using InvokePaymentAppCallback =
base::Callback<void(payments::mojom::PaymentAppResponsePtr)>;
// Should be accessed only on the UI thread.
- virtual void GetAllManifests(BrowserContext* browser_context,
- const GetAllManifestsCallback& callback) = 0;
virtual void GetAllPaymentApps(BrowserContext* browser_context,
GetAllPaymentAppsCallback callback) = 0;
virtual void InvokePaymentApp(

Powered by Google App Engine
This is Rietveld 408576698