| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ |
| 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ | 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 virtual void DidFinishLoad(blink::WebLocalFrame* frame) OVERRIDE; | 121 virtual void DidFinishLoad(blink::WebLocalFrame* frame) OVERRIDE; |
| 122 virtual void FrameDetached(blink::WebFrame* frame) OVERRIDE; | 122 virtual void FrameDetached(blink::WebFrame* frame) OVERRIDE; |
| 123 virtual void FrameWillClose(blink::WebFrame* frame) OVERRIDE; | 123 virtual void FrameWillClose(blink::WebFrame* frame) OVERRIDE; |
| 124 virtual void WillSendSubmitEvent(blink::WebLocalFrame* frame, | 124 virtual void WillSendSubmitEvent(blink::WebLocalFrame* frame, |
| 125 const blink::WebFormElement& form) OVERRIDE; | 125 const blink::WebFormElement& form) OVERRIDE; |
| 126 virtual void WillSubmitForm(blink::WebLocalFrame* frame, | 126 virtual void WillSubmitForm(blink::WebLocalFrame* frame, |
| 127 const blink::WebFormElement& form) OVERRIDE; | 127 const blink::WebFormElement& form) OVERRIDE; |
| 128 | 128 |
| 129 // RenderView IPC handlers: | 129 // RenderView IPC handlers: |
| 130 void OnFillPasswordForm(const PasswordFormFillData& form_data); | 130 void OnFillPasswordForm(const PasswordFormFillData& form_data); |
| 131 void OnChangeLoggingState(bool active); |
| 131 | 132 |
| 132 // Scans the given frame for password forms and sends them up to the browser. | 133 // Scans the given frame for password forms and sends them up to the browser. |
| 133 // If |only_visible| is true, only forms visible in the layout are sent. | 134 // If |only_visible| is true, only forms visible in the layout are sent. |
| 134 void SendPasswordForms(blink::WebFrame* frame, bool only_visible); | 135 void SendPasswordForms(blink::WebFrame* frame, bool only_visible); |
| 135 | 136 |
| 136 void GetSuggestions(const PasswordFormFillData& fill_data, | 137 void GetSuggestions(const PasswordFormFillData& fill_data, |
| 137 const base::string16& input, | 138 const base::string16& input, |
| 138 std::vector<base::string16>* suggestions, | 139 std::vector<base::string16>* suggestions, |
| 139 std::vector<base::string16>* realms); | 140 std::vector<base::string16>* realms); |
| 140 | 141 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 | 187 |
| 187 // Pointer to the WebView. Used to access page scale factor. | 188 // Pointer to the WebView. Used to access page scale factor. |
| 188 blink::WebView* web_view_; | 189 blink::WebView* web_view_; |
| 189 | 190 |
| 190 // Set if the user might be submitting a password form on the current page, | 191 // Set if the user might be submitting a password form on the current page, |
| 191 // but the submit may still fail (i.e. doesn't pass JavaScript validation). | 192 // but the submit may still fail (i.e. doesn't pass JavaScript validation). |
| 192 FrameToPasswordFormMap provisionally_saved_forms_; | 193 FrameToPasswordFormMap provisionally_saved_forms_; |
| 193 | 194 |
| 194 PasswordValueGatekeeper gatekeeper_; | 195 PasswordValueGatekeeper gatekeeper_; |
| 195 | 196 |
| 197 // True indicates that user debug information should be logged. |
| 198 bool logging_state_active_; |
| 199 |
| 196 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; | 200 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; |
| 197 | 201 |
| 198 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); | 202 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); |
| 199 }; | 203 }; |
| 200 | 204 |
| 201 } // namespace autofill | 205 } // namespace autofill |
| 202 | 206 |
| 203 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ | 207 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ |
| OLD | NEW |