OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ |
7 | 7 |
8 #include "base/memory/scoped_vector.h" | 8 #include "base/memory/scoped_vector.h" |
9 #include "base/timer/elapsed_timer.h" | 9 #include "base/timer/elapsed_timer.h" |
10 #include "chrome/browser/ui/passwords/manage_passwords_state.h" | 10 #include "chrome/browser/ui/passwords/manage_passwords_state.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 63 |
64 // Called when the password will be saved automatically, but we still wish to | 64 // Called when the password will be saved automatically, but we still wish to |
65 // visually inform the user that the save has occured. | 65 // visually inform the user that the save has occured. |
66 void OnAutomaticPasswordSave( | 66 void OnAutomaticPasswordSave( |
67 scoped_ptr<password_manager::PasswordFormManager> form_manager); | 67 scoped_ptr<password_manager::PasswordFormManager> form_manager); |
68 | 68 |
69 // Called when a form is autofilled with login information, so we can manage | 69 // Called when a form is autofilled with login information, so we can manage |
70 // password credentials for the current site which are stored in | 70 // password credentials for the current site which are stored in |
71 // |password_form_map|. This stores a copy of |password_form_map| and shows | 71 // |password_form_map|. This stores a copy of |password_form_map| and shows |
72 // the manage password icon. | 72 // the manage password icon. |
73 void OnPasswordAutofilled(const autofill::PasswordFormMap& password_form_map); | 73 void OnPasswordAutofilled(const autofill::PasswordFormMap& password_form_map, |
| 74 const GURL& origin); |
74 | 75 |
75 // TODO(vasilii): remove this method. It's obsolete. | 76 // TODO(vasilii): remove this method. It's obsolete. |
76 void OnBlacklistBlockedAutofill( | 77 void OnBlacklistBlockedAutofill( |
77 const autofill::PasswordFormMap& password_form_map); | 78 const autofill::PasswordFormMap& password_form_map); |
78 | 79 |
79 // PasswordStore::Observer implementation. | 80 // PasswordStore::Observer implementation. |
80 void OnLoginsChanged( | 81 void OnLoginsChanged( |
81 const password_manager::PasswordStoreChangeList& changes) override; | 82 const password_manager::PasswordStoreChangeList& changes) override; |
82 | 83 |
83 // Called from the model when the user chooses to save a password; passes the | 84 // Called from the model when the user chooses to save a password; passes the |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 scoped_ptr<base::ElapsedTimer> timer_; | 212 scoped_ptr<base::ElapsedTimer> timer_; |
212 | 213 |
213 // Contains true if the bubble is to be popped up in the next call to | 214 // Contains true if the bubble is to be popped up in the next call to |
214 // UpdateBubbleAndIconVisibility(). | 215 // UpdateBubbleAndIconVisibility(). |
215 bool should_pop_up_bubble_; | 216 bool should_pop_up_bubble_; |
216 | 217 |
217 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsUIController); | 218 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsUIController); |
218 }; | 219 }; |
219 | 220 |
220 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ | 221 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ |
OLD | NEW |