OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_CHROME_BROWSER_UI_SETTINGS_PASSWORD_DETAILS_COLLECTION_VIEW_CONTROLL
ER_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_SETTINGS_PASSWORD_DETAILS_COLLECTION_VIEW_CONTROLL
ER_H_ |
| 7 |
| 8 #import "ios/chrome/browser/ui/settings/settings_root_collection_view_controller
.h" |
| 9 |
| 10 namespace autofill { |
| 11 struct PasswordForm; |
| 12 } // namespace autofill |
| 13 @protocol ReauthenticationProtocol; |
| 14 |
| 15 @protocol PasswordDetailsCollectionViewControllerDelegate<NSObject> |
| 16 |
| 17 - (void)deletePassword:(const autofill::PasswordForm&)passwordForm; |
| 18 |
| 19 @end |
| 20 |
| 21 @interface PasswordDetailsCollectionViewController |
| 22 : SettingsRootCollectionViewController |
| 23 |
| 24 // The designated initializer. |delegate| and |reauthenticaionModule| must not |
| 25 // be nil. |
| 26 - (instancetype) |
| 27 initWithPasswordForm:(autofill::PasswordForm)passwordForm |
| 28 delegate: |
| 29 (id<PasswordDetailsCollectionViewControllerDelegate>)delegate |
| 30 reauthenticationModule:(id<ReauthenticationProtocol>)reauthenticationModule |
| 31 username:(NSString*)username |
| 32 password:(NSString*)password |
| 33 origin:(NSString*)origin NS_DESIGNATED_INITIALIZER; |
| 34 |
| 35 - (instancetype)initWithStyle:(CollectionViewControllerStyle)style |
| 36 NS_UNAVAILABLE; |
| 37 |
| 38 @end |
| 39 |
| 40 #endif // IOS_CHROME_BROWSER_UI_SETTINGS_PASSWORD_DETAILS_COLLECTION_VIEW_CONTR
OLLER_H_ |
OLD | NEW |