Chromium Code Reviews| 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 COMPONENTS_AUTOFILL_CORE_BROWSER_PASSWORD_FORM_FIELD_PREDICTIONS_H_ | |
| 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_PASSWORD_FORM_FIELD_PREDICTIONS_H_ | |
| 7 | |
| 8 #include <map> | |
| 9 | |
| 10 #include "components/autofill/core/common/form_field_data.h" | |
| 11 | |
| 12 namespace autofill { | |
| 13 | |
| 14 enum PasswordFormFieldPredictionType { | |
| 15 PREDICTION_USERNAME, | |
|
vabr (Chromium)
2015/05/27 13:31:51
Would it make sense to use ServerFieldType instead
msramek
2015/05/27 14:38:35
I wanted to give GetPasswordForm() a more explicit
vabr (Chromium)
2015/05/28 07:53:32
Acknowledged, can stay as it is. Would you conside
msramek
2015/05/28 19:36:48
Done.
| |
| 16 PREDICTION_CURRENT_PASSWORD, | |
| 17 PREDICTION_NEW_PASSWORD, | |
| 18 PREDICTION_MAX = PREDICTION_NEW_PASSWORD | |
| 19 }; | |
| 20 | |
| 21 using PasswordFormFieldPredictions = | |
| 22 std::map<PasswordFormFieldPredictionType, FormFieldData>; | |
|
Ilya Sherman
2015/05/27 18:21:50
nit: I'd prefer to avoid this typedef/using stmt e
msramek
2015/05/28 19:36:48
I'd prefer not to add a file for so little content
| |
| 23 | |
| 24 } // namespace autofill | |
| 25 | |
| 26 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PASSWORD_FORM_FIELD_PREDICTIONS_H_ | |
| OLD | NEW |