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

Side by Side Diff: ios/chrome/browser/payments/payment_request.h

Issue 2893353002: [Payment Request] Address edit view controller (Part 2) (Closed)
Patch Set: Initial 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_H_ 5 #ifndef IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_H_
6 #define IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_H_ 6 #define IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 bool request_payer_phone() const override; 63 bool request_payer_phone() const override;
64 bool request_payer_email() const override; 64 bool request_payer_email() const override;
65 payments::PaymentShippingType shipping_type() const override; 65 payments::PaymentShippingType shipping_type() const override;
66 66
67 // Returns the payments::CurrencyFormatter instance for this PaymentRequest. 67 // Returns the payments::CurrencyFormatter instance for this PaymentRequest.
68 // Note: Having multiple currencies per PaymentRequest flow is not supported; 68 // Note: Having multiple currencies per PaymentRequest flow is not supported;
69 // hence the CurrencyFormatter is cached here. 69 // hence the CurrencyFormatter is cached here.
70 payments::CurrencyFormatter* GetOrCreateCurrencyFormatter(); 70 payments::CurrencyFormatter* GetOrCreateCurrencyFormatter();
71 71
72 // Returns the autofill::RegionDataLoader instance for this PaymentRequest. 72 // Returns the autofill::RegionDataLoader instance for this PaymentRequest.
73 autofill::RegionDataLoader* GetRegionDataLoader(); 73 virtual autofill::RegionDataLoader* GetRegionDataLoader();
74 74
75 // Returns the available autofill profiles for this user to be used as 75 // Returns the available autofill profiles for this user to be used as
76 // shipping profiles. 76 // shipping profiles.
77 const std::vector<autofill::AutofillProfile*>& shipping_profiles() const { 77 const std::vector<autofill::AutofillProfile*>& shipping_profiles() const {
78 return shipping_profiles_; 78 return shipping_profiles_;
79 } 79 }
80 80
81 // Returns the currently selected shipping profile for this PaymentRequest 81 // Returns the currently selected shipping profile for this PaymentRequest
82 // flow if there is one. Returns nullptr if there is no selected profile. 82 // flow if there is one. Returns nullptr if there is no selected profile.
83 autofill::AutofillProfile* selected_shipping_profile() const { 83 autofill::AutofillProfile* selected_shipping_profile() const {
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 // A vector of pointers to the shipping options in |web_payment_request_|. 212 // A vector of pointers to the shipping options in |web_payment_request_|.
213 std::vector<web::PaymentShippingOption*> shipping_options_; 213 std::vector<web::PaymentShippingOption*> shipping_options_;
214 web::PaymentShippingOption* selected_shipping_option_; 214 web::PaymentShippingOption* selected_shipping_option_;
215 215
216 payments::PaymentsProfileComparator profile_comparator_; 216 payments::PaymentsProfileComparator profile_comparator_;
217 217
218 DISALLOW_COPY_AND_ASSIGN(PaymentRequest); 218 DISALLOW_COPY_AND_ASSIGN(PaymentRequest);
219 }; 219 };
220 220
221 #endif // IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_H_ 221 #endif // IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/payments/BUILD.gn ('k') | ios/chrome/browser/payments/test_payment_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698