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(const autofill::PasswordForm& password_form); |
95 | 96 |
96 protected: | 97 protected: |
97 // Subclassed for unit tests. | 98 // Subclassed for unit tests. |
98 PasswordManager(content::WebContents* web_contents, | 99 PasswordManager(content::WebContents* web_contents, |
99 PasswordManagerDelegate* delegate); | 100 PasswordManagerDelegate* delegate); |
100 | 101 |
101 // Handle notification that a password form was submitted. | 102 // Handle notification that a password form was submitted. |
102 virtual void OnPasswordFormSubmitted( | 103 virtual void OnPasswordFormSubmitted( |
103 const autofill::PasswordForm& password_form); | 104 const autofill::PasswordForm& password_form); |
104 | 105 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 // notification in const member functions. | 174 // notification in const member functions. |
174 mutable ObserverList<LoginModelObserver> observers_; | 175 mutable ObserverList<LoginModelObserver> observers_; |
175 | 176 |
176 // Callbacks to be notified when a password form has been submitted. | 177 // Callbacks to be notified when a password form has been submitted. |
177 std::vector<PasswordSubmittedCallback> submission_callbacks_; | 178 std::vector<PasswordSubmittedCallback> submission_callbacks_; |
178 | 179 |
179 DISALLOW_COPY_AND_ASSIGN(PasswordManager); | 180 DISALLOW_COPY_AND_ASSIGN(PasswordManager); |
180 }; | 181 }; |
181 | 182 |
182 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_H_ | 183 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_H_ |
OLD | NEW |