| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 | 4 |
| 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_FORM_MANAGER_H_ | 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_FORM_MANAGER_H_ |
| 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_FORM_MANAGER_H_ | 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_FORM_MANAGER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 // via the AUTOCOMPLETE=off attribute. Note that if we don't have | 278 // via the AUTOCOMPLETE=off attribute. Note that if we don't have |
| 279 // an exact match, we still provide candidates that the user may | 279 // an exact match, we still provide candidates that the user may |
| 280 // end up choosing. | 280 // end up choosing. |
| 281 enum ManagerAction { | 281 enum ManagerAction { |
| 282 kManagerActionNone = 0, | 282 kManagerActionNone = 0, |
| 283 kManagerActionAutofilled, | 283 kManagerActionAutofilled, |
| 284 kManagerActionBlacklisted, | 284 kManagerActionBlacklisted, |
| 285 kManagerActionMax | 285 kManagerActionMax |
| 286 }; | 286 }; |
| 287 | 287 |
| 288 // UserAction - What does the user do with this form? If he or she | 288 // UserAction - What does the user do with this form? If they do nothing |
| 289 // does nothing (either by accepting what the password manager did, or | 289 // (either by accepting what the password manager did, or by simply (not |
| 290 // by simply (not typing anything at all), you get None. If there were | 290 // typing anything at all), you get None. If there were multiple choices and |
| 291 // multiple choices and the user selects one other than the default, | 291 // the user selects one other than the default, you get Choose, if user |
| 292 // you get Choose, if user selects an entry from matching against the Public | 292 // selects an entry from matching against the Public Suffix List you get |
| 293 // Suffix List you get ChoosePslMatch, if the user types in a new value | 293 // ChoosePslMatch, if the user types in a new value for just the password you |
| 294 // for just the password you get OverridePassword, and if the user types in a | 294 // get OverridePassword, and if the user types in a new value for the |
| 295 // new value for the username and password you get | 295 // username and password you get OverrideUsernameAndPassword. |
| 296 // OverrideUsernameAndPassword. | |
| 297 enum UserAction { | 296 enum UserAction { |
| 298 kUserActionNone = 0, | 297 kUserActionNone = 0, |
| 299 kUserActionChoose, | 298 kUserActionChoose, |
| 300 kUserActionChoosePslMatch, | 299 kUserActionChoosePslMatch, |
| 301 kUserActionOverridePassword, | 300 kUserActionOverridePassword, |
| 302 kUserActionOverrideUsernameAndPassword, | 301 kUserActionOverrideUsernameAndPassword, |
| 303 kUserActionMax | 302 kUserActionMax |
| 304 }; | 303 }; |
| 305 | 304 |
| 306 // Result - What happens to the form? | 305 // Result - What happens to the form? |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 606 // False unless FetchMatchingLoginsFromPasswordStore has been called again | 605 // False unless FetchMatchingLoginsFromPasswordStore has been called again |
| 607 // without the password store returning results in the meantime. | 606 // without the password store returning results in the meantime. |
| 608 bool need_to_refetch_; | 607 bool need_to_refetch_; |
| 609 | 608 |
| 610 DISALLOW_COPY_AND_ASSIGN(PasswordFormManager); | 609 DISALLOW_COPY_AND_ASSIGN(PasswordFormManager); |
| 611 }; | 610 }; |
| 612 | 611 |
| 613 } // namespace password_manager | 612 } // namespace password_manager |
| 614 | 613 |
| 615 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_FORM_MANAGER_H_ | 614 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_FORM_MANAGER_H_ |
| OLD | NEW |