| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_H_ | 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_H_ |
| 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_H_ | 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 // Handles a password form being submitted. | 147 // Handles a password form being submitted. |
| 148 virtual void OnPasswordFormSubmitted( | 148 virtual void OnPasswordFormSubmitted( |
| 149 password_manager::PasswordManagerDriver* driver, | 149 password_manager::PasswordManagerDriver* driver, |
| 150 const autofill::PasswordForm& password_form); | 150 const autofill::PasswordForm& password_form); |
| 151 | 151 |
| 152 // Handles a manual request to save password. | 152 // Handles a manual request to save password. |
| 153 void OnPasswordFormForceSaveRequested( | 153 void OnPasswordFormForceSaveRequested( |
| 154 password_manager::PasswordManagerDriver* driver, | 154 password_manager::PasswordManagerDriver* driver, |
| 155 const autofill::PasswordForm& password_form); | 155 const autofill::PasswordForm& password_form); |
| 156 | 156 |
| 157 // Handles a request to show manual fallback for password saving, i.e. the |
| 158 // omnibox icon with the anchored hidden prompt. |
| 159 void ShowManualFallbackForSaving( |
| 160 password_manager::PasswordManagerDriver* driver, |
| 161 const autofill::PasswordForm& password_form); |
| 162 |
| 163 // Handles a request to hide manual fallback for password saving. |
| 164 void HideManualFallbackForSaving(); |
| 165 |
| 157 // Called if |password_form| was filled upon in-page navigation. This often | 166 // Called if |password_form| was filled upon in-page navigation. This often |
| 158 // means history.pushState being called from JavaScript. If this causes false | 167 // means history.pushState being called from JavaScript. If this causes false |
| 159 // positive in password saving, update http://crbug.com/357696. | 168 // positive in password saving, update http://crbug.com/357696. |
| 160 void OnInPageNavigation(password_manager::PasswordManagerDriver* driver, | 169 void OnInPageNavigation(password_manager::PasswordManagerDriver* driver, |
| 161 const autofill::PasswordForm& password_form); | 170 const autofill::PasswordForm& password_form); |
| 162 | 171 |
| 163 void ProcessAutofillPredictions( | 172 void ProcessAutofillPredictions( |
| 164 password_manager::PasswordManagerDriver* driver, | 173 password_manager::PasswordManagerDriver* driver, |
| 165 const std::vector<autofill::FormStructure*>& forms); | 174 const std::vector<autofill::FormStructure*>& forms); |
| 166 | 175 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 | 286 |
| 278 // The user-visible URL from the last time a password was provisionally saved. | 287 // The user-visible URL from the last time a password was provisionally saved. |
| 279 GURL main_frame_url_; | 288 GURL main_frame_url_; |
| 280 | 289 |
| 281 DISALLOW_COPY_AND_ASSIGN(PasswordManager); | 290 DISALLOW_COPY_AND_ASSIGN(PasswordManager); |
| 282 }; | 291 }; |
| 283 | 292 |
| 284 } // namespace password_manager | 293 } // namespace password_manager |
| 285 | 294 |
| 286 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_H_ | 295 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_H_ |
| OLD | NEW |