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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
193 // Shows the password bubble without user interaction. | 193 // Shows the password bubble without user interaction. |
194 void ShowBubbleWithoutUserInteraction(); | 194 void ShowBubbleWithoutUserInteraction(); |
195 | 195 |
196 // content::WebContentsObserver: | 196 // content::WebContentsObserver: |
197 void WebContentsDestroyed() override; | 197 void WebContentsDestroyed() override; |
198 | 198 |
199 // Shows infobar which allows user to choose credentials. Placing this | 199 // Shows infobar which allows user to choose credentials. Placing this |
200 // code to separate method allows mocking. | 200 // code to separate method allows mocking. |
201 virtual void UpdateAndroidAccountChooserInfoBarVisibility(); | 201 virtual void UpdateAndroidAccountChooserInfoBarVisibility(); |
202 | 202 |
203 virtual void UpdateAutoSigninToastVisibility(); | |
newt (away)
2015/08/13 16:48:04
comment
melandory
2015/08/20 15:11:00
Done.
| |
204 | |
203 // The wrapper around current state and data. | 205 // The wrapper around current state and data. |
204 ManagePasswordsState passwords_data_; | 206 ManagePasswordsState passwords_data_; |
205 | 207 |
206 // Used to measure the amount of time on a page; if it's less than some | 208 // Used to measure the amount of time on a page; if it's less than some |
207 // reasonable limit, then don't close the bubble upon navigation. We create | 209 // reasonable limit, then don't close the bubble upon navigation. We create |
208 // (and destroy) the timer in DidNavigateMainFrame. | 210 // (and destroy) the timer in DidNavigateMainFrame. |
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 |