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

Side by Side Diff: components/autofill/core/common/password_form_field_predictions.h

Issue 1153023004: Prepare the infrastructure for password overrides. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698