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

Unified Diff: components/payments/content/payment_request_spec.h

Issue 2866623003: PaymentRequest.canMakePayment() query quota on desktop. (Closed)
Patch Set: frame 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
« no previous file with comments | « components/payments/content/payment_request.cc ('k') | components/payments/content/payment_request_spec.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/payments/content/payment_request_spec.h
diff --git a/components/payments/content/payment_request_spec.h b/components/payments/content/payment_request_spec.h
index dba1e0357d25c46fe9167831f5c89d9ffdd8e83e..98e7d6733a7024df36c296113fc1cb14932fdc24 100644
--- a/components/payments/content/payment_request_spec.h
+++ b/components/payments/content/payment_request_spec.h
@@ -5,6 +5,7 @@
#ifndef COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_SPEC_H_
#define COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_SPEC_H_
+#include <map>
#include <set>
#include <string>
#include <vector>
@@ -77,6 +78,10 @@ class PaymentRequestSpec : public PaymentOptionsProvider {
const std::set<std::string>& supported_card_networks_set() const {
return supported_card_networks_set_;
}
+ const std::map<std::string, std::set<std::string>>& stringified_method_data()
+ const {
+ return stringified_method_data_;
+ }
// Returns whether the |method_name| was specified as supported through the
// "basic-card" payment method. If false, it means either the |method_name| is
// not supported at all, or specified directly in supportedMethods.
@@ -152,6 +157,10 @@ class PaymentRequestSpec : public PaymentOptionsProvider {
// |supported_card_networks_set_| to check merchant support.
std::set<std::string> basic_card_specified_networks_;
+ // A mapping of the payment method names to the corresponding JSON-stringified
+ // payment method specific data.
+ std::map<std::string, std::set<std::string>> stringified_method_data_;
+
// The |observer_for_testing_| will fire after all the |observers_| have been
// notified.
base::ObserverList<Observer> observers_;
« no previous file with comments | « components/payments/content/payment_request.cc ('k') | components/payments/content/payment_request_spec.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698