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 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 30 matching lines...) Expand all Loading... | |
41 password_manager::PasswordGenerationManager* passwordGenerationManager; | 41 password_manager::PasswordGenerationManager* passwordGenerationManager; |
42 | 42 |
43 // The PasswordManagerClient owned by this PasswordController. | 43 // The PasswordManagerClient owned by this PasswordController. |
44 @property(readonly) | 44 @property(readonly) |
45 password_manager::PasswordManagerClient* passwordManagerClient; | 45 password_manager::PasswordManagerClient* passwordManagerClient; |
46 | 46 |
47 // The PasswordManagerDriver owned by this PasswordController. | 47 // The PasswordManagerDriver owned by this PasswordController. |
48 @property(readonly) | 48 @property(readonly) |
49 password_manager::PasswordManagerDriver* passwordManagerDriver; | 49 password_manager::PasswordManagerDriver* passwordManagerDriver; |
50 | 50 |
51 // This is set to YES as soon as the associated WebState is destroyed. | |
52 @property(readonly) BOOL isBeingDestroyed; | |
Eugene But (OOO till 7-30)
2016/05/03 17:49:49
Does this need to be public?
vabr (Chromium)
2016/05/04 15:03:46
No, good point. I moved it to the .mm file.
| |
53 | |
51 // |webState| should not be nil. | 54 // |webState| should not be nil. |
52 - (instancetype)initWithWebState:(web::WebState*)webState | 55 - (instancetype)initWithWebState:(web::WebState*)webState |
53 passwordsUiDelegate:(id<PasswordsUiDelegate>)UIDelegate; | 56 passwordsUiDelegate:(id<PasswordsUiDelegate>)UIDelegate; |
54 | 57 |
55 // This is just for testing. | 58 // This is just for testing. |
56 - (instancetype) | 59 - (instancetype) |
57 initWithWebState:(web::WebState*)webState | 60 initWithWebState:(web::WebState*)webState |
58 passwordsUiDelegate:(id<PasswordsUiDelegate>)UIDelegate | 61 passwordsUiDelegate:(id<PasswordsUiDelegate>)UIDelegate |
59 client:(std::unique_ptr<password_manager::PasswordManagerClient>) | 62 client:(std::unique_ptr<password_manager::PasswordManagerClient>) |
60 passwordManagerClient NS_DESIGNATED_INITIALIZER; | 63 passwordManagerClient NS_DESIGNATED_INITIALIZER; |
61 | 64 |
62 - (instancetype)init NS_UNAVAILABLE; | 65 - (instancetype)init NS_UNAVAILABLE; |
63 | 66 |
64 // Releases all tab-specific members. Must be called when the Tab is closing, | 67 // Releases all tab-specific members. Must be called when the Tab is closing, |
65 // otherwise invalid memory might be accessed during destruction. | 68 // otherwise invalid memory might be accessed during destruction. |
66 - (void)detach; | 69 - (void)detach; |
67 | 70 |
68 // Uses JavaScript to find password forms using the |webState_| and fills | 71 // Uses JavaScript to find password forms using the |webState_| and fills |
69 // them with the |username| and |password|. |completionHandler|, if not nil, | 72 // them with the |username| and |password|. |completionHandler|, if not nil, |
70 // is called once per form filled. | 73 // is called once per form filled. |
71 - (void)findAndFillPasswordForms:(NSString*)username | 74 - (void)findAndFillPasswordForms:(NSString*)username |
72 password:(NSString*)password | 75 password:(NSString*)password |
73 completionHandler:(void (^)(BOOL))completionHandler; | 76 completionHandler:(void (^)(BOOL))completionHandler; |
74 | 77 |
75 @end | 78 @end |
76 | 79 |
77 #endif // IOS_CHROME_BROWSER_PASSWORDS_PASSWORD_CONTROLLER_H_ | 80 #endif // IOS_CHROME_BROWSER_PASSWORDS_PASSWORD_CONTROLLER_H_ |
OLD | NEW |