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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
149 // Current local forms. | 149 // Current local forms. |
150 const std::vector<const autofill::PasswordForm*>& GetCurrentForms() const { | 150 const std::vector<const autofill::PasswordForm*>& GetCurrentForms() const { |
151 return passwords_data_.GetCurrentForms(); | 151 return passwords_data_.GetCurrentForms(); |
152 } | 152 } |
153 | 153 |
154 // Current federated forms. | 154 // Current federated forms. |
155 const std::vector<const autofill::PasswordForm*>& GetFederatedForms() const { | 155 const std::vector<const autofill::PasswordForm*>& GetFederatedForms() const { |
156 return passwords_data_.federated_credentials_forms(); | 156 return passwords_data_.federated_credentials_forms(); |
157 } | 157 } |
158 | 158 |
159 bool PasswordOverriden() const; | |
vabr (Chromium)
2015/08/17 13:21:46
nit: Please add a comment explaining who overrides
dvadym
2015/08/17 14:25:34
I've added comment // True if the password for pre
| |
160 | |
159 protected: | 161 protected: |
160 explicit ManagePasswordsUIController( | 162 explicit ManagePasswordsUIController( |
161 content::WebContents* web_contents); | 163 content::WebContents* web_contents); |
162 | 164 |
163 // The pieces of saving and blacklisting passwords that interact with | 165 // The pieces of saving and blacklisting passwords that interact with |
164 // FormManager, split off into internal functions for testing/mocking. | 166 // FormManager, split off into internal functions for testing/mocking. |
165 virtual void SavePasswordInternal(); | 167 virtual void SavePasswordInternal(); |
166 virtual void UpdatePasswordInternal( | 168 virtual void UpdatePasswordInternal( |
167 const autofill::PasswordForm& password_form); | 169 const autofill::PasswordForm& password_form); |
168 virtual void NeverSavePasswordInternal(); | 170 virtual void NeverSavePasswordInternal(); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
209 scoped_ptr<base::ElapsedTimer> timer_; | 211 scoped_ptr<base::ElapsedTimer> timer_; |
210 | 212 |
211 // Contains true if the bubble is to be popped up in the next call to | 213 // Contains true if the bubble is to be popped up in the next call to |
212 // UpdateBubbleAndIconVisibility(). | 214 // UpdateBubbleAndIconVisibility(). |
213 bool should_pop_up_bubble_; | 215 bool should_pop_up_bubble_; |
214 | 216 |
215 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsUIController); | 217 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsUIController); |
216 }; | 218 }; |
217 | 219 |
218 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ | 220 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ |
OLD | NEW |