| 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 CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_H_ |
| 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 const content::LoadCommittedDetails& details, | 85 const content::LoadCommittedDetails& details, |
| 86 const content::FrameNavigateParams& params) OVERRIDE; | 86 const content::FrameNavigateParams& params) OVERRIDE; |
| 87 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 87 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 88 | 88 |
| 89 // TODO(isherman): This should not be public, but is currently being used by | 89 // TODO(isherman): This should not be public, but is currently being used by |
| 90 // the LoginPrompt code. | 90 // the LoginPrompt code. |
| 91 void OnPasswordFormsParsed( | 91 void OnPasswordFormsParsed( |
| 92 const std::vector<autofill::PasswordForm>& forms); | 92 const std::vector<autofill::PasswordForm>& forms); |
| 93 void OnPasswordFormsRendered( | 93 void OnPasswordFormsRendered( |
| 94 const std::vector<autofill::PasswordForm>& visible_forms); | 94 const std::vector<autofill::PasswordForm>& visible_forms); |
| 95 void OnRemovePasswordSuggestion( |
| 96 const autofill::PasswordForm& password_form); |
| 95 | 97 |
| 96 protected: | 98 protected: |
| 97 // Subclassed for unit tests. | 99 // Subclassed for unit tests. |
| 98 PasswordManager(content::WebContents* web_contents, | 100 PasswordManager(content::WebContents* web_contents, |
| 99 PasswordManagerDelegate* delegate); | 101 PasswordManagerDelegate* delegate); |
| 100 | 102 |
| 101 // Handle notification that a password form was submitted. | 103 // Handle notification that a password form was submitted. |
| 102 virtual void OnPasswordFormSubmitted( | 104 virtual void OnPasswordFormSubmitted( |
| 103 const autofill::PasswordForm& password_form); | 105 const autofill::PasswordForm& password_form); |
| 104 | 106 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 // notification in const member functions. | 175 // notification in const member functions. |
| 174 mutable ObserverList<LoginModelObserver> observers_; | 176 mutable ObserverList<LoginModelObserver> observers_; |
| 175 | 177 |
| 176 // Callbacks to be notified when a password form has been submitted. | 178 // Callbacks to be notified when a password form has been submitted. |
| 177 std::vector<PasswordSubmittedCallback> submission_callbacks_; | 179 std::vector<PasswordSubmittedCallback> submission_callbacks_; |
| 178 | 180 |
| 179 DISALLOW_COPY_AND_ASSIGN(PasswordManager); | 181 DISALLOW_COPY_AND_ASSIGN(PasswordManager); |
| 180 }; | 182 }; |
| 181 | 183 |
| 182 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_H_ | 184 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_H_ |
| OLD | NEW |