OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BUBBLE_MODEL_H_ | 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ |
6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ | 6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ |
7 | 7 |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 return title_brand_link_range_; | 103 return title_brand_link_range_; |
104 } | 104 } |
105 | 105 |
106 Profile* GetProfile() const; | 106 Profile* GetProfile() const; |
107 content::WebContents* GetWebContents() const; | 107 content::WebContents* GetWebContents() const; |
108 | 108 |
109 // Returns true iff the multiple account selection prompt for account update | 109 // Returns true iff the multiple account selection prompt for account update |
110 // should be presented. | 110 // should be presented. |
111 bool ShouldShowMultipleAccountUpdateUI() const; | 111 bool ShouldShowMultipleAccountUpdateUI() const; |
112 | 112 |
113 // True if the save bubble should display the warm welcome for Google Smart | |
114 // Lock. | |
115 bool ShouldShowGoogleSmartLockWelcome() const; | |
116 | |
117 // Returns true and updates the internal state iff the Save bubble should | 113 // Returns true and updates the internal state iff the Save bubble should |
118 // switch to the Chrome Sign In promo after the password was saved. Otherwise, | 114 // switch to the Chrome Sign In promo after the password was saved. Otherwise, |
119 // returns false and leaves the current state. | 115 // returns false and leaves the current state. |
120 bool ReplaceToShowSignInPromoIfNeeded(); | 116 bool ReplaceToShowSignInPromoIfNeeded(); |
121 | 117 |
122 void SetClockForTesting(std::unique_ptr<base::Clock> clock); | 118 void SetClockForTesting(std::unique_ptr<base::Clock> clock); |
123 | 119 |
124 private: | 120 private: |
125 enum UserBehaviorOnUpdateBubble { | 121 enum UserBehaviorOnUpdateBubble { |
126 UPDATE_CLICKED, | 122 UPDATE_CLICKED, |
(...skipping 25 matching lines...) Expand all Loading... |
152 // Responsible for recording all the interactions required. | 148 // Responsible for recording all the interactions required. |
153 std::unique_ptr<InteractionKeeper> interaction_keeper_; | 149 std::unique_ptr<InteractionKeeper> interaction_keeper_; |
154 | 150 |
155 // A bridge to ManagePasswordsUIController instance. | 151 // A bridge to ManagePasswordsUIController instance. |
156 base::WeakPtr<PasswordsModelDelegate> delegate_; | 152 base::WeakPtr<PasswordsModelDelegate> delegate_; |
157 | 153 |
158 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleModel); | 154 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleModel); |
159 }; | 155 }; |
160 | 156 |
161 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ | 157 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ |
OLD | NEW |