Index: chrome/browser/password_manager/password_generation_manager.h |
diff --git a/chrome/browser/password_manager/password_generation_manager.h b/chrome/browser/password_manager/password_generation_manager.h |
index b699c2e66d4204675ca0230afd9a9aca0865283d..35754cd828c2e25b0f0d11ef8d5050e217468a0d 100644 |
--- a/chrome/browser/password_manager/password_generation_manager.h |
+++ b/chrome/browser/password_manager/password_generation_manager.h |
@@ -14,6 +14,8 @@ |
#include "content/public/browser/web_contents_user_data.h" |
namespace autofill { |
+struct FormData; |
+class FormStructure; |
class PasswordGenerator; |
} |
@@ -49,6 +51,10 @@ class PasswordGenerationManager |
static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
virtual ~PasswordGenerationManager(); |
+ // Detect account creation forms from forms with autofill type annotated. |
+ void DetectAccountCreationForms( |
+ const std::vector<autofill::FormStructure*>& forms); |
+ |
protected: |
explicit PasswordGenerationManager(content::WebContents* contents); |
@@ -81,6 +87,10 @@ class PasswordGenerationManager |
// is a separate function to aid in testing. |
virtual void SendStateToRenderer(content::RenderViewHost* host, bool enabled); |
+ virtual void SendAccountCreationFormsToRenderer( |
+ content::RenderViewHost* host, |
+ const std::vector<autofill::FormData>& forms); |
+ |
// Causes the password generation bubble UI to be shown for the specified |
// form. The popup will be anchored at |icon_bounds|. The generated |
// password will be no longer than |max_length|. |