| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 #ifndef IOS_CHROME_BROWSER_PASSWORDS_PASSWORD_CONTROLLER_H_ | 4 #ifndef IOS_CHROME_BROWSER_PASSWORDS_PASSWORD_CONTROLLER_H_ |
| 5 #define IOS_CHROME_BROWSER_PASSWORDS_PASSWORD_CONTROLLER_H_ | 5 #define IOS_CHROME_BROWSER_PASSWORDS_PASSWORD_CONTROLLER_H_ |
| 6 | 6 |
| 7 #import <Foundation/NSObject.h> | 7 #import <Foundation/NSObject.h> |
| 8 | 8 |
| 9 #import "ios/chrome/browser/autofill/form_suggestion_provider.h" | 9 #import "ios/chrome/browser/autofill/form_suggestion_provider.h" |
| 10 #import "ios/chrome/browser/passwords/ios_chrome_password_manager_client.h" | 10 #import "ios/chrome/browser/passwords/ios_chrome_password_manager_client.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 password_manager::PasswordManagerDriver* passwordManagerDriver; | 47 password_manager::PasswordManagerDriver* passwordManagerDriver; |
| 48 | 48 |
| 49 // |webState| should not be nil. | 49 // |webState| should not be nil. |
| 50 - (instancetype)initWithWebState:(web::WebState*)webState | 50 - (instancetype)initWithWebState:(web::WebState*)webState |
| 51 passwordsUiDelegate:(id<PasswordsUiDelegate>)UIDelegate; | 51 passwordsUiDelegate:(id<PasswordsUiDelegate>)UIDelegate; |
| 52 | 52 |
| 53 // This is just for testing. | 53 // This is just for testing. |
| 54 - (instancetype) | 54 - (instancetype) |
| 55 initWithWebState:(web::WebState*)webState | 55 initWithWebState:(web::WebState*)webState |
| 56 passwordsUiDelegate:(id<PasswordsUiDelegate>)UIDelegate | 56 passwordsUiDelegate:(id<PasswordsUiDelegate>)UIDelegate |
| 57 client:(scoped_ptr<password_manager::PasswordManagerClient>) | 57 client:(std::unique_ptr<password_manager::PasswordManagerClient>) |
| 58 passwordManagerClient NS_DESIGNATED_INITIALIZER; | 58 passwordManagerClient NS_DESIGNATED_INITIALIZER; |
| 59 | 59 |
| 60 - (instancetype)init NS_UNAVAILABLE; | 60 - (instancetype)init NS_UNAVAILABLE; |
| 61 | 61 |
| 62 // Releases all tab-specific members. Must be called when the Tab is closing, | 62 // Releases all tab-specific members. Must be called when the Tab is closing, |
| 63 // otherwise invalid memory might be accessed during destruction. | 63 // otherwise invalid memory might be accessed during destruction. |
| 64 - (void)detach; | 64 - (void)detach; |
| 65 | 65 |
| 66 // Uses JavaScript to find password forms using the |webState_| and fills | 66 // Uses JavaScript to find password forms using the |webState_| and fills |
| 67 // them with the |username| and |password|. |completionHandler|, if not nil, | 67 // them with the |username| and |password|. |completionHandler|, if not nil, |
| 68 // is called once per form filled. | 68 // is called once per form filled. |
| 69 - (void)findAndFillPasswordForms:(NSString*)username | 69 - (void)findAndFillPasswordForms:(NSString*)username |
| 70 password:(NSString*)password | 70 password:(NSString*)password |
| 71 completionHandler:(void (^)(BOOL))completionHandler; | 71 completionHandler:(void (^)(BOOL))completionHandler; |
| 72 | 72 |
| 73 @end | 73 @end |
| 74 | 74 |
| 75 #endif // IOS_CHROME_BROWSER_PASSWORDS_PASSWORD_CONTROLLER_H_ | 75 #endif // IOS_CHROME_BROWSER_PASSWORDS_PASSWORD_CONTROLLER_H_ |
| OLD | NEW |