| 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 <memory> | 9 #include <memory> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 bool OnMessageReceived(const IPC::Message& message) override; | 146 bool OnMessageReceived(const IPC::Message& message) override; |
| 147 void DidFinishDocumentLoad() override; | 147 void DidFinishDocumentLoad() override; |
| 148 void DidFinishLoad() override; | 148 void DidFinishLoad() override; |
| 149 void FrameDetached() override; | 149 void FrameDetached() override; |
| 150 void FrameWillClose() override; | 150 void FrameWillClose() override; |
| 151 void DidStartProvisionalLoad() override; | 151 void DidStartProvisionalLoad() override; |
| 152 void DidCommitProvisionalLoad(bool is_new_navigation, | 152 void DidCommitProvisionalLoad(bool is_new_navigation, |
| 153 bool is_same_page_navigation) override; | 153 bool is_same_page_navigation) override; |
| 154 void WillSendSubmitEvent(const blink::WebFormElement& form) override; | 154 void WillSendSubmitEvent(const blink::WebFormElement& form) override; |
| 155 void WillSubmitForm(const blink::WebFormElement& form) override; | 155 void WillSubmitForm(const blink::WebFormElement& form) override; |
| 156 void OnDestruct() override; |
| 156 | 157 |
| 157 // RenderView IPC handlers: | 158 // RenderView IPC handlers: |
| 158 void OnFillPasswordForm(int key, const PasswordFormFillData& form_data); | 159 void OnFillPasswordForm(int key, const PasswordFormFillData& form_data); |
| 159 void OnSetLoggingState(bool active); | 160 void OnSetLoggingState(bool active); |
| 160 void OnAutofillUsernameAndPasswordDataReceived( | 161 void OnAutofillUsernameAndPasswordDataReceived( |
| 161 const FormsPredictionsMap& predictions); | 162 const FormsPredictionsMap& predictions); |
| 162 void OnFindFocusedPasswordForm(); | 163 void OnFindFocusedPasswordForm(); |
| 163 | 164 |
| 164 // Scans the given frame for password forms and sends them up to the browser. | 165 // Scans the given frame for password forms and sends them up to the browser. |
| 165 // If |only_visible| is true, only forms visible in the layout are sent. | 166 // If |only_visible| is true, only forms visible in the layout are sent. |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 // Contains server predictions for username, password and/or new password | 239 // Contains server predictions for username, password and/or new password |
| 239 // fields for individual forms. | 240 // fields for individual forms. |
| 240 FormsPredictionsMap form_predictions_; | 241 FormsPredictionsMap form_predictions_; |
| 241 | 242 |
| 242 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); | 243 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); |
| 243 }; | 244 }; |
| 244 | 245 |
| 245 } // namespace autofill | 246 } // namespace autofill |
| 246 | 247 |
| 247 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ | 248 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ |
| OLD | NEW |