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

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

Issue 2065303002: Modifying Autofill Agent to use synthetic form (i.e., formless elements) when no form is present on… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding browser test 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_cache.h
diff --git a/components/autofill/content/renderer/form_cache.h b/components/autofill/content/renderer/form_cache.h
index 78bef2e6447bae95ae1ba4af837fdca2df62eaa6..f57a420c07da3c595ace87cf3e5a9292d26ac223 100644
--- a/components/autofill/content/renderer/form_cache.h
+++ b/components/autofill/content/renderer/form_cache.h
@@ -51,6 +51,10 @@ class FormCache {
// and the experiment id for the server predictions.
bool ShowPredictions(const FormDataPredictions& form);
+ // Returns a copy of the current state of SyntheticForm, which contains the
+ // input elements not contained inside a <form> tag.
+ FormData GetSyntheticForm();
+
private:
// Scans |control_elements| and returns the number of editable elements.
// Also remembers the initial <select> and <input> element states, and

Powered by Google App Engine
This is Rietveld 408576698