| 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..be14bd99edb8d8ed56b644e9a104212da519e23d 100644
|
| --- a/chrome/browser/password_manager/password_generation_manager.h
|
| +++ b/chrome/browser/password_manager/password_generation_manager.h
|
| @@ -12,8 +12,10 @@
|
| #include "chrome/browser/sync/profile_sync_service_observer.h"
|
| #include "content/public/browser/web_contents_observer.h"
|
| #include "content/public/browser/web_contents_user_data.h"
|
| +#include "url/gurl.h"
|
|
|
| namespace autofill {
|
| +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,9 @@ 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<GURL>& origins);
|
| +
|
| // 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|.
|
|
|