| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 // observers. | 138 // observers. |
| 139 void SetSelectedShippingProfile(autofill::AutofillProfile* profile); | 139 void SetSelectedShippingProfile(autofill::AutofillProfile* profile); |
| 140 void SetSelectedContactProfile(autofill::AutofillProfile* profile); | 140 void SetSelectedContactProfile(autofill::AutofillProfile* profile); |
| 141 void SetSelectedCreditCard(autofill::CreditCard* card); | 141 void SetSelectedCreditCard(autofill::CreditCard* card); |
| 142 | 142 |
| 143 autofill::PersonalDataManager* personal_data_manager() { | 143 autofill::PersonalDataManager* personal_data_manager() { |
| 144 return delegate_->GetPersonalDataManager(); | 144 return delegate_->GetPersonalDataManager(); |
| 145 } | 145 } |
| 146 | 146 |
| 147 payments::mojom::PaymentDetails* details() { return details_.get(); } | 147 payments::mojom::PaymentDetails* details() { return details_.get(); } |
| 148 payments::mojom::PaymentOptions* options() { return options_.get(); } |
| 148 const std::vector<std::string>& supported_card_networks() { | 149 const std::vector<std::string>& supported_card_networks() { |
| 149 return supported_card_networks_; | 150 return supported_card_networks_; |
| 150 } | 151 } |
| 151 content::WebContents* web_contents() { return web_contents_; } | 152 content::WebContents* web_contents() { return web_contents_; } |
| 152 | 153 |
| 153 bool request_shipping() const { return options_->request_shipping; } | 154 bool request_shipping() const { return options_->request_shipping; } |
| 154 bool request_payer_name() const { return options_->request_payer_name; } | 155 bool request_payer_name() const { return options_->request_payer_name; } |
| 155 bool request_payer_phone() const { return options_->request_payer_phone; } | 156 bool request_payer_phone() const { return options_->request_payer_phone; } |
| 156 bool request_payer_email() const { return options_->request_payer_email; } | 157 bool request_payer_email() const { return options_->request_payer_email; } |
| 157 | 158 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 // This is owned by |details_|, which is owned by this object and lives until | 221 // This is owned by |details_|, which is owned by this object and lives until |
| 221 // |this| is destructed so it's safe to keep this raw pointer. | 222 // |this| is destructed so it's safe to keep this raw pointer. |
| 222 payments::mojom::PaymentShippingOption* selected_shipping_option_; | 223 payments::mojom::PaymentShippingOption* selected_shipping_option_; |
| 223 | 224 |
| 224 DISALLOW_COPY_AND_ASSIGN(PaymentRequest); | 225 DISALLOW_COPY_AND_ASSIGN(PaymentRequest); |
| 225 }; | 226 }; |
| 226 | 227 |
| 227 } // namespace payments | 228 } // namespace payments |
| 228 | 229 |
| 229 #endif // COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_H_ | 230 #endif // COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_H_ |
| OLD | NEW |