blob: 07db77ca443dab3d6eb38ca3ea2a5cf1a80fcfdf [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_CHROME_BROWSER_UI_AUTOFILL_MANUAL_FILL_ADDRESS_FORM_H_
#define IOS_CHROME_BROWSER_UI_AUTOFILL_MANUAL_FILL_ADDRESS_FORM_H_
#import "ios/chrome/browser/ui/autofill/manual_fill/address.h"
#include <vector>
namespace autofill {
class AutofillProfile;
}
// Extends |ManualFillAddress| with a convenience initializer from c++
// |autofill::AutofillProfile|.
@interface ManualFillAddress (AutofillProfile)
// Convenience initializer from an autofill::AutofillProfile.
- (instancetype)initWithProfile:(const autofill::AutofillProfile&)profile;
// Converts a list of |autofill::AutofillProfile| into a list of
// |ManualFillAddress|.
+ (NSArray<ManualFillAddress*>*)manualFillAddressesFromProfiles:
(std::vector<autofill::AutofillProfile*>)profiles;
@end
#endif // IOS_CHROME_BROWSER_UI_AUTOFILL_MANUAL_FILL_ADDRESS_FORM_H_