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

Unified Diff: components/autofill/content/renderer/form_classifier.h

Issue 1883183002: [Password Manager] HTML parsing based client-side form type classifier (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Check <form>'s attributes Created 4 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 side-by-side diff with in-line comments
Download patch
Index: components/autofill/content/renderer/form_classifier.h
diff --git a/components/autofill/content/renderer/form_classifier.h b/components/autofill/content/renderer/form_classifier.h
new file mode 100644
index 0000000000000000000000000000000000000000..2ce96c3c3f2b9f44702715e5c6ba84498ddf5423
--- /dev/null
+++ b/components/autofill/content/renderer/form_classifier.h
@@ -0,0 +1,14 @@
+// Copyright 2016 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.
+
+#include "third_party/WebKit/public/web/WebFormElement.h"
+
+namespace autofill {
+
+// Checks if |form| is eligible for password generation. If yes, sets the name
+// of the generation field to |generation_field| and returns true. Otherwise,
+// returns false (w/o any changes of |generation_field|).
+bool ClassifyFormAndFindGenerationField(const blink::WebFormElement& form,
+ base::string16* generation_field);
+}
« no previous file with comments | « components/autofill/content/renderer/BUILD.gn ('k') | components/autofill/content/renderer/form_classifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698