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

Unified 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, 7 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 side-by-side diff with in-line comments
Download patch
Index: components/autofill/core/common/password_form_field_predictions.h
diff --git a/components/autofill/core/common/password_form_field_predictions.h b/components/autofill/core/common/password_form_field_predictions.h
new file mode 100644
index 0000000000000000000000000000000000000000..cc2f468341ebd254e4b5a985e500943b87cc841d
--- /dev/null
+++ b/components/autofill/core/common/password_form_field_predictions.h
@@ -0,0 +1,26 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_PASSWORD_FORM_FIELD_PREDICTIONS_H_
+#define COMPONENTS_AUTOFILL_CORE_BROWSER_PASSWORD_FORM_FIELD_PREDICTIONS_H_
+
+#include <map>
+
+#include "components/autofill/core/common/form_field_data.h"
+
+namespace autofill {
+
+enum PasswordFormFieldPredictionType {
+ 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.
+ PREDICTION_CURRENT_PASSWORD,
+ PREDICTION_NEW_PASSWORD,
+ PREDICTION_MAX = PREDICTION_NEW_PASSWORD
+};
+
+using PasswordFormFieldPredictions =
+ 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
+
+} // namespace autofill
+
+#endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PASSWORD_FORM_FIELD_PREDICTIONS_H_

Powered by Google App Engine
This is Rietveld 408576698