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

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

Issue 2925063003: [Payments] Implement payment instrument icons (Closed)
Patch Set: fix comment lines Created 3 years, 6 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
« no previous file with comments | « content/browser/payments/payment_app.proto ('k') | content/browser/payments/payment_app_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 001685034d7bb140a3a1953d63260395ea64e689..230db47ab918010d7a1e4b3a73b18520f3815531 100644
--- a/content/browser/payments/payment_app_database.h
+++ b/content/browser/payments/payment_app_database.h
@@ -12,6 +12,7 @@
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "components/payments/mojom/payment_app.mojom.h"
+#include "content/browser/payments/payment_instrument_icon_fetcher.h"
#include "content/browser/service_worker/service_worker_context_wrapper.h"
#include "content/browser/service_worker/service_worker_registration.h"
#include "content/common/content_export.h"
@@ -122,12 +123,21 @@ class CONTENT_EXPORT PaymentAppDatabase {
void DidFindRegistrationToWritePaymentInstrument(
const std::string& instrument_key,
payments::mojom::PaymentInstrumentPtr instrument,
+ const std::string& decoded_instrument_icon,
WritePaymentInstrumentCallback callback,
ServiceWorkerStatusCode status,
scoped_refptr<ServiceWorkerRegistration> registration);
void DidWritePaymentInstrument(WritePaymentInstrumentCallback callback,
ServiceWorkerStatusCode status);
+ // PaymentInstrumentIconFetcherCallback.
+ void DidFetchedPaymentInstrumentIcon(
+ const GURL& scope,
+ const std::string& instrument_key,
+ payments::mojom::PaymentInstrumentPtr instrument,
+ WritePaymentInstrumentCallback callback,
+ const std::string& icon);
+
// ClearPaymentInstruments callbacks
void DidFindRegistrationToClearPaymentInstruments(
const GURL& scope,
@@ -142,6 +152,7 @@ class CONTENT_EXPORT PaymentAppDatabase {
void DidClearPaymentInstruments(ClearPaymentInstrumentsCallback callback,
ServiceWorkerStatusCode status);
+ scoped_refptr<PaymentInstrumentIconFetcher> instrument_icon_fetcher_;
scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_;
base::WeakPtrFactory<PaymentAppDatabase> weak_ptr_factory_;
« no previous file with comments | « content/browser/payments/payment_app.proto ('k') | content/browser/payments/payment_app_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698