| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 // the action off to the FormManager. The controller MUST be in a pending | 90 // the action off to the FormManager. The controller MUST be in a pending |
| 91 // state, and WILL be in BLACKLIST_STATE after this method executes. | 91 // state, and WILL be in BLACKLIST_STATE after this method executes. |
| 92 virtual void NeverSavePassword(); | 92 virtual void NeverSavePassword(); |
| 93 | 93 |
| 94 // Called from the model when the user chooses to unblacklist the site. The | 94 // Called from the model when the user chooses to unblacklist the site. The |
| 95 // controller MUST be in BLACKLIST_STATE, and WILL be in MANAGE_STATE after | 95 // controller MUST be in BLACKLIST_STATE, and WILL be in MANAGE_STATE after |
| 96 // this method executes. The method removes the first form of | 96 // this method executes. The method removes the first form of |
| 97 // GetCurrentForms() which should be the blacklisted one. | 97 // GetCurrentForms() which should be the blacklisted one. |
| 98 virtual void UnblacklistSite(); | 98 virtual void UnblacklistSite(); |
| 99 | 99 |
| 100 // Called from the model. The controller should switch to MANAGE_STATE and pop |
| 101 // up a bubble. |
| 102 virtual void ManageAccounts(); |
| 103 |
| 100 // Open a new tab, pointing to the password manager settings page. | 104 // Open a new tab, pointing to the password manager settings page. |
| 101 virtual void NavigateToPasswordManagerSettingsPage(); | 105 virtual void NavigateToPasswordManagerSettingsPage(); |
| 102 | 106 |
| 103 virtual const autofill::PasswordForm& PendingPassword() const; | 107 virtual const autofill::PasswordForm& PendingPassword() const; |
| 104 | 108 |
| 105 // Set the state of the Omnibox icon, and possibly show the associated bubble | 109 // Set the state of the Omnibox icon, and possibly show the associated bubble |
| 106 // without user interaction. | 110 // without user interaction. |
| 107 virtual void UpdateIconAndBubbleState(ManagePasswordsIcon* icon); | 111 virtual void UpdateIconAndBubbleState(ManagePasswordsIcon* icon); |
| 108 | 112 |
| 109 // Called from the model when the bubble is displayed. | 113 // Called from the model when the bubble is displayed. |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 scoped_ptr<base::ElapsedTimer> timer_; | 189 scoped_ptr<base::ElapsedTimer> timer_; |
| 186 | 190 |
| 187 // Contains true if the bubble is to be popped up in the next call to | 191 // Contains true if the bubble is to be popped up in the next call to |
| 188 // UpdateBubbleAndIconVisibility(). | 192 // UpdateBubbleAndIconVisibility(). |
| 189 bool should_pop_up_bubble_; | 193 bool should_pop_up_bubble_; |
| 190 | 194 |
| 191 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsUIController); | 195 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsUIController); |
| 192 }; | 196 }; |
| 193 | 197 |
| 194 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ | 198 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ |
| OLD | NEW |