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

Unified Diff: components/payments/core/payment_request_delegate.h

Issue 2829503002: [Payments] Normalize Shipping Address sent to merchant on Desktop. (Closed)
Patch Set: Be more strict on country code Created 3 years, 8 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/core/address_normalizer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/payments/core/payment_request_delegate.h
diff --git a/components/payments/core/payment_request_delegate.h b/components/payments/core/payment_request_delegate.h
index 8ebc229dfe37a5f8c68ead87d8aca59945a11ed0..1ab49891317b55d5856246d74e24d890c4e11978 100644
--- a/components/payments/core/payment_request_delegate.h
+++ b/components/payments/core/payment_request_delegate.h
@@ -29,6 +29,7 @@ class PersonalDataManager;
namespace payments {
+class AddressNormalizer;
class PaymentRequest;
class PaymentRequestDelegate {
@@ -69,10 +70,14 @@ class PaymentRequestDelegate {
result_delegate) = 0;
// Returns the source and storage for country/region data loads.
- virtual std::unique_ptr<const ::i18n::addressinput::Source>
+ virtual std::unique_ptr<::i18n::addressinput::Source>
GetAddressInputSource() = 0;
virtual std::unique_ptr<::i18n::addressinput::Storage>
GetAddressInputStorage() = 0;
+
+ // Returns a pointer to the address normalizer to use for the duration of this
+ // Payment Request.
+ virtual AddressNormalizer* GetAddressNormalizer() = 0;
};
} // namespace payments
« no previous file with comments | « components/payments/core/address_normalizer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698