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 IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_UTILS_H_ | 5 #ifndef IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_UTILS_H_ |
6 #define IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_UTILS_H_ | 6 #define IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_UTILS_H_ |
7 | 7 |
8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
9 | 9 |
10 namespace autofill { | 10 namespace autofill { |
11 class AutofillProfile; | 11 class AutofillProfile; |
12 } // namespace autofill | 12 } // namespace autofill |
13 | 13 |
14 namespace payment_request_utils { | 14 namespace payment_request_utils { |
15 | 15 |
16 // Helper function to get the shipping address label from an autofill profile. | 16 // Helper function to get the name label from an autofill profile. |
| 17 NSString* NameLabelFromAutofillProfile(autofill::AutofillProfile* profile); |
| 18 |
| 19 // Helper function to get the address label from an autofill profile. |
17 NSString* AddressLabelFromAutofillProfile(autofill::AutofillProfile* profile); | 20 NSString* AddressLabelFromAutofillProfile(autofill::AutofillProfile* profile); |
18 | 21 |
| 22 // Helper function to get the phone number label from an autofill profile. |
| 23 NSString* PhoneNumberLabelFromAutofillProfile( |
| 24 autofill::AutofillProfile* profile); |
| 25 |
19 } // namespace payment_request_utils | 26 } // namespace payment_request_utils |
20 | 27 |
21 #endif // IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_UTILS_H_ | 28 #endif // IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_UTILS_H_ |
OLD | NEW |