| 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 | 174 |
| 175 // Legacy RenderViewObserver: | 175 // Legacy RenderViewObserver: |
| 176 void DidStartLoading(); | 176 void DidStartLoading(); |
| 177 void DidStopLoading(); | 177 void DidStopLoading(); |
| 178 void LegacyDidStartProvisionalLoad(blink::WebLocalFrame* frame); | 178 void LegacyDidStartProvisionalLoad(blink::WebLocalFrame* frame); |
| 179 | 179 |
| 180 // RenderView IPC handlers: | 180 // RenderView IPC handlers: |
| 181 void OnFillPasswordForm(int key, const PasswordFormFillData& form_data); | 181 void OnFillPasswordForm(int key, const PasswordFormFillData& form_data); |
| 182 void OnSetLoggingState(bool active); | 182 void OnSetLoggingState(bool active); |
| 183 void OnAutofillUsernameDataReceived(const FormDataFieldDataMap& predictions); | 183 void OnAutofillUsernameDataReceived(const FormDataFieldDataMap& predictions); |
| 184 void OnForceSavePassword(); |
| 184 | 185 |
| 185 // Scans the given frame for password forms and sends them up to the browser. | 186 // Scans the given frame for password forms and sends them up to the browser. |
| 186 // If |only_visible| is true, only forms visible in the layout are sent. | 187 // If |only_visible| is true, only forms visible in the layout are sent. |
| 187 void SendPasswordForms(bool only_visible); | 188 void SendPasswordForms(bool only_visible); |
| 188 | 189 |
| 189 // Instructs the browser to show a pop-up suggesting which credentials could | 190 // Instructs the browser to show a pop-up suggesting which credentials could |
| 190 // be filled. |show_in_password_field| should indicate whether the pop-up is | 191 // be filled. |show_in_password_field| should indicate whether the pop-up is |
| 191 // to be shown on the password field instead of on the username field. If the | 192 // to be shown on the password field instead of on the username field. If the |
| 192 // username exists, it should be passed as |user_input|. If there is no | 193 // username exists, it should be passed as |user_input|. If there is no |
| 193 // username, pass the password field in |user_input|. In the latter case, no | 194 // username, pass the password field in |user_input|. In the latter case, no |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 FormDataFieldDataMap form_predictions_; | 288 FormDataFieldDataMap form_predictions_; |
| 288 | 289 |
| 289 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; | 290 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; |
| 290 | 291 |
| 291 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); | 292 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); |
| 292 }; | 293 }; |
| 293 | 294 |
| 294 } // namespace autofill | 295 } // namespace autofill |
| 295 | 296 |
| 296 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ | 297 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ |
| OLD | NEW |