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

Unified Diff: chrome/browser/autofill/autofill_manager.h

Issue 10458018: This CL does the following: (1) Pass the max_length attribute to the password generator; (2) Update… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix a windows UI bug. Created 8 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
« no previous file with comments | « no previous file | chrome/browser/autofill/autofill_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_manager.h
diff --git a/chrome/browser/autofill/autofill_manager.h b/chrome/browser/autofill/autofill_manager.h
index e7c011fcd4579a2f20d064390bfa3058556bdc07..d5c58673f92a34acdcde6517bbd029f005167997 100644
--- a/chrome/browser/autofill/autofill_manager.h
+++ b/chrome/browser/autofill/autofill_manager.h
@@ -41,6 +41,10 @@ typedef TabContents TabContentsWrapper;
struct ViewHostMsg_FrameNavigate_Params;
+namespace autofill {
+class PasswordGenerator;
+}
+
namespace content {
class RenderViewHost;
}
@@ -96,6 +100,7 @@ class AutofillManager : public content::NotificationObserver,
void OnShowAutofillDialog();
void OnDidPreviewAutofillFormData();
void OnShowPasswordGenerationPopup(const gfx::Rect& bounds,
+ int max_length,
const webkit::forms::PasswordForm& form);
// Remove the credit card or Autofill profile that matches |unique_id|
@@ -361,6 +366,8 @@ class AutofillManager : public content::NotificationObserver,
base::WeakPtr<ProfileSyncService> sync_service_;
// Listens for changes to the 'enabled' state for password generation.
PrefChangeRegistrar registrar_;
+ // To be passed to the password generation UI to generate the password.
+ scoped_ptr<autofill::PasswordGenerator> password_generator_;
// Our copy of the form data.
ScopedVector<FormStructure> form_structures_;
« no previous file with comments | « no previous file | chrome/browser/autofill/autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698