| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_H_ | 5 #ifndef COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_H_ |
| 6 #define COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_H_ | 6 #define COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 | 116 |
| 117 // Sets the |profile| to be the selected one and will update state and notify | 117 // Sets the |profile| to be the selected one and will update state and notify |
| 118 // observers. | 118 // observers. |
| 119 void SetSelectedShippingProfile(autofill::AutofillProfile* profile); | 119 void SetSelectedShippingProfile(autofill::AutofillProfile* profile); |
| 120 void SetSelectedContactProfile(autofill::AutofillProfile* profile); | 120 void SetSelectedContactProfile(autofill::AutofillProfile* profile); |
| 121 void SetSelectedCreditCard(autofill::CreditCard* card); | 121 void SetSelectedCreditCard(autofill::CreditCard* card); |
| 122 | 122 |
| 123 autofill::PersonalDataManager* personal_data_manager() { | 123 autofill::PersonalDataManager* personal_data_manager() { |
| 124 return delegate_->GetPersonalDataManager(); | 124 return delegate_->GetPersonalDataManager(); |
| 125 } | 125 } |
| 126 const std::string& locale() { return delegate_->GetApplicationLocale(); } |
| 126 | 127 |
| 127 payments::mojom::PaymentDetails* details() { return details_.get(); } | 128 payments::mojom::PaymentDetails* details() { return details_.get(); } |
| 128 const std::vector<std::string>& supported_card_networks() { | 129 const std::vector<std::string>& supported_card_networks() { |
| 129 return supported_card_networks_; | 130 return supported_card_networks_; |
| 130 } | 131 } |
| 131 content::WebContents* web_contents() { return web_contents_; } | 132 content::WebContents* web_contents() { return web_contents_; } |
| 132 | 133 |
| 133 bool request_shipping() const { return options_->request_shipping; } | 134 bool request_shipping() const { return options_->request_shipping; } |
| 134 bool request_payer_name() const { return options_->request_payer_name; } | 135 bool request_payer_name() const { return options_->request_payer_name; } |
| 135 bool request_payer_phone() const { return options_->request_payer_phone; } | 136 bool request_payer_phone() const { return options_->request_payer_phone; } |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 std::vector<std::unique_ptr<autofill::CreditCard>> card_cache_; | 191 std::vector<std::unique_ptr<autofill::CreditCard>> card_cache_; |
| 191 std::vector<autofill::CreditCard*> credit_cards_; | 192 std::vector<autofill::CreditCard*> credit_cards_; |
| 192 autofill::CreditCard* selected_credit_card_; | 193 autofill::CreditCard* selected_credit_card_; |
| 193 | 194 |
| 194 DISALLOW_COPY_AND_ASSIGN(PaymentRequest); | 195 DISALLOW_COPY_AND_ASSIGN(PaymentRequest); |
| 195 }; | 196 }; |
| 196 | 197 |
| 197 } // namespace payments | 198 } // namespace payments |
| 198 | 199 |
| 199 #endif // COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_H_ | 200 #endif // COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_H_ |
| OLD | NEW |