Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(401)

Side by Side Diff: ios/chrome/browser/passwords/password_generation_agent.h

Issue 2933873002: [ObjC ARC] Converts ios/chrome/browser/passwords:passwords to ARC. (Closed)
Patch Set: fix names and nil assignments. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_PASSWORDS_PASSWORD_GENERATION_AGENT_H_ 5 #ifndef IOS_CHROME_BROWSER_PASSWORDS_PASSWORD_GENERATION_AGENT_H_
6 #define IOS_CHROME_BROWSER_PASSWORDS_PASSWORD_GENERATION_AGENT_H_ 6 #define IOS_CHROME_BROWSER_PASSWORDS_PASSWORD_GENERATION_AGENT_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 20 matching lines...) Expand all
31 31
32 // Performs password generation for a web state. Locates eligible password 32 // Performs password generation for a web state. Locates eligible password
33 // form fields, manages the user experience flow, and injects generated 33 // form fields, manages the user experience flow, and injects generated
34 // passwords into the page. This is the iOS counterpart to the upstream 34 // passwords into the page. This is the iOS counterpart to the upstream
35 // renderer-side PasswordGenerationAgent. This class is not meant to be 35 // renderer-side PasswordGenerationAgent. This class is not meant to be
36 // subclassed and should only be used from the main thread. 36 // subclassed and should only be used from the main thread.
37 @interface PasswordGenerationAgent : NSObject 37 @interface PasswordGenerationAgent : NSObject
38 38
39 // Initializes PasswordGenerationAgent, which observes the specified web state. 39 // Initializes PasswordGenerationAgent, which observes the specified web state.
40 - (instancetype) 40 - (instancetype)
41 initWithWebState:(web::WebState*)webState 41 initWithWebState:(web::WebState*)webState
42 passwordManager:(password_manager::PasswordManager*)passwordManager 42 passwordManager:(password_manager::PasswordManager*)passwordManager
43 passwordManagerDriver:(password_manager::PasswordManagerDriver*)driver 43 passwordManagerDriver:(password_manager::PasswordManagerDriver*)driver
44 passwordsUiDelegate:(id<PasswordsUiDelegate>)UIDelegate; 44 passwordsUiDelegate:(id<PasswordsUiDelegate>)delegate;
45 45
46 - (instancetype)init NS_UNAVAILABLE; 46 - (instancetype)init NS_UNAVAILABLE;
47 47
48 // Indicates that the specified |form| has not been blacklisted by the user 48 // Indicates that the specified |form| has not been blacklisted by the user
49 // for the purposes of password management. 49 // for the purposes of password management.
50 - (void)allowPasswordGenerationForForm:(const autofill::PasswordForm&)form; 50 - (void)allowPasswordGenerationForForm:(const autofill::PasswordForm&)form;
51 51
52 // Passes the |forms| that were parsed from the current page to this agent so 52 // Passes the |forms| that were parsed from the current page to this agent so
53 // that account creation forms and generation fields can be found. 53 // that account creation forms and generation fields can be found.
54 - (void)processParsedPasswordForms: 54 - (void)processParsedPasswordForms:
(...skipping 19 matching lines...) Expand all
74 // The password fields in |possibleAccountCreationForm|. 74 // The password fields in |possibleAccountCreationForm|.
75 @property(nonatomic, readonly) 75 @property(nonatomic, readonly)
76 const std::vector<autofill::FormFieldData>& passwordFields; 76 const std::vector<autofill::FormFieldData>& passwordFields;
77 77
78 // The field that triggers the password generation UI. 78 // The field that triggers the password generation UI.
79 @property(nonatomic, readonly) autofill::FormFieldData* passwordGenerationField; 79 @property(nonatomic, readonly) autofill::FormFieldData* passwordGenerationField;
80 80
81 // Initializes PasswordGenerationAgent, which observes the specified web state, 81 // Initializes PasswordGenerationAgent, which observes the specified web state,
82 // and allows injecting JavaScript managers for testing. 82 // and allows injecting JavaScript managers for testing.
83 - (instancetype) 83 - (instancetype)
84 initWithWebState:(web::WebState*)webState 84 initWithWebState:(web::WebState*)webState
85 passwordManager:(password_manager::PasswordManager*)passwordManager 85 passwordManager:(password_manager::PasswordManager*)passwordManager
86 passwordManagerDriver:(password_manager::PasswordManagerDriver*)driver 86 passwordManagerDriver:(password_manager::PasswordManagerDriver*)driver
87 JSPasswordManager:(JsPasswordManager*)JSPasswordManager 87 JSPasswordManager:(JsPasswordManager*)javaScriptPasswordManager
88 JSSuggestionManager:(JsSuggestionManager*)JSSuggestionManager 88 JSSuggestionManager:(JsSuggestionManager*)suggestionManager
89 passwordsUiDelegate:(id<PasswordsUiDelegate>)UIDelegate; 89 passwordsUiDelegate:(id<PasswordsUiDelegate>)delegate;
90 90
91 // Clears all per-page state. 91 // Clears all per-page state.
92 - (void)clearState; 92 - (void)clearState;
93 93
94 @end 94 @end
95 95
96 #endif // IOS_CHROME_BROWSER_PASSWORDS_PASSWORD_GENERATION_AGENT_H_ 96 #endif // IOS_CHROME_BROWSER_PASSWORDS_PASSWORD_GENERATION_AGENT_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/passwords/password_controller.mm ('k') | ios/chrome/browser/passwords/password_generation_agent.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698