Index: components/autofill/content/renderer/password_autofill_agent.h |
diff --git a/components/autofill/content/renderer/password_autofill_agent.h b/components/autofill/content/renderer/password_autofill_agent.h |
index 5d430e0b830ff048bab52bf2bbcce994f1e925ee..bc26b4fd7631bfb56ebf925ed41c6aa20096f182 100644 |
--- a/components/autofill/content/renderer/password_autofill_agent.h |
+++ b/components/autofill/content/renderer/password_autofill_agent.h |
@@ -26,6 +26,8 @@ class WebSecurityOrigin; |
namespace autofill { |
+class RendererSavePasswordProgressLogger; |
+ |
// This class is responsible for filling password forms. |
class PasswordAutofillAgent : public content::RenderFrameObserver { |
public: |
@@ -85,6 +87,19 @@ class PasswordAutofillAgent : public content::RenderFrameObserver { |
// JavaScript. |
void FirstUserGestureObserved(); |
+ // Given password form data |form_data| and a supplied key |key| for |
+ // referencing the password info, returns a set of WebInputElements in |
+ // |elements|, which must be non-null, that the password manager has values |
+ // for filling. Also takes an optional logger |logger| for logging password |
+ // autofill behavior. |
+ void GetFillableElementFromFormData( |
+ int key, |
+ const PasswordFormFillData& form_data, |
+ RendererSavePasswordProgressLogger* logger, |
+ std::vector<blink::WebInputElement>* elements); |
+ |
+ bool logging_state_active() const { return logging_state_active_; } |
+ |
protected: |
virtual bool OriginCanAccessPasswordManager( |
const blink::WebSecurityOrigin& origin); |