Chromium Code Reviews| Index: components/autofill/core/browser/password_autofill_manager.h |
| diff --git a/components/autofill/core/browser/password_autofill_manager.h b/components/autofill/core/browser/password_autofill_manager.h |
| index 97af87f865e43868e14948a0411fc2f40c9be32d..29831f47caac0f164e604104430329cfb6b73f33 100644 |
| --- a/components/autofill/core/browser/password_autofill_manager.h |
| +++ b/components/autofill/core/browser/password_autofill_manager.h |
| @@ -16,16 +16,14 @@ |
| #include "components/autofill/core/common/password_form_fill_data.h" |
| -namespace content { |
| -class WebContents; |
| -} // namespace content |
| - |
| namespace autofill { |
| +class AutofillDriver; |
| + |
| // This class is responsible for filling password forms. |
| class PasswordAutofillManager { |
| public: |
| - explicit PasswordAutofillManager(content::WebContents* web_contents); |
| + explicit PasswordAutofillManager(AutofillDriver* autofill_driver); |
| virtual ~PasswordAutofillManager(); |
| // Fills the password associated with user name |value|. Returns true if the |
| @@ -62,10 +60,9 @@ class PasswordAutofillManager { |
| // The logins we have filled so far with their associated info. |
| LoginToPasswordInfoMap login_to_password_info_; |
| - // We only need the RenderViewHost pointer in WebContents, but if we attempt |
| - // to just store RenderViewHost on creation, it becomes invalid once we start |
| - // using it. By having the WebContents we can always get a valid pointer. |
| - content::WebContents* web_contents_; // Weak reference. |
| + // Provides driver-level context to the shared code of the component. Must |
| + // outlive this object. |
|
Ilya Sherman
2013/11/21 10:31:56
nit: "|this|"
jif-google
2013/11/21 16:46:02
Done.
|
| + AutofillDriver* autofill_driver_; // weak |
| DISALLOW_COPY_AND_ASSIGN(PasswordAutofillManager); |
| }; |