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 "base/memory/scoped_vector.h" | 8 #include "base/memory/scoped_vector.h" |
9 #include "chrome/browser/ui/passwords/manage_passwords_bubble.h" | 9 #include "chrome/browser/ui/passwords/manage_passwords_bubble.h" |
10 #include "components/autofill/core/common/password_form.h" | 10 #include "components/autofill/core/common/password_form.h" |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 // PENDING_PASSWORD_STATE. | 164 // PENDING_PASSWORD_STATE. |
165 void UpdatePendingStateTitle(); | 165 void UpdatePendingStateTitle(); |
166 // URL of the page from where this bubble was triggered. | 166 // URL of the page from where this bubble was triggered. |
167 GURL origin_; | 167 GURL origin_; |
168 password_manager::ui::State state_; | 168 password_manager::ui::State state_; |
169 base::string16 title_; | 169 base::string16 title_; |
170 // Range of characters in the title that contains the Smart Lock Brand and | 170 // Range of characters in the title that contains the Smart Lock Brand and |
171 // should point to an article. For the default title the range is empty. | 171 // should point to an article. For the default title the range is empty. |
172 gfx::Range title_brand_link_range_; | 172 gfx::Range title_brand_link_range_; |
173 autofill::PasswordForm pending_password_; | 173 autofill::PasswordForm pending_password_; |
| 174 bool password_overridden_; |
174 ScopedVector<const autofill::PasswordForm> local_credentials_; | 175 ScopedVector<const autofill::PasswordForm> local_credentials_; |
175 ScopedVector<const autofill::PasswordForm> federated_credentials_; | 176 ScopedVector<const autofill::PasswordForm> federated_credentials_; |
176 base::string16 manage_link_; | 177 base::string16 manage_link_; |
177 base::string16 save_confirmation_text_; | 178 base::string16 save_confirmation_text_; |
178 gfx::Range save_confirmation_link_range_; | 179 gfx::Range save_confirmation_link_range_; |
179 // If true upon destruction, the user has confirmed that she never wants to | 180 // If true upon destruction, the user has confirmed that she never wants to |
180 // save passwords for a particular site. | 181 // save passwords for a particular site. |
181 bool never_save_passwords_; | 182 bool never_save_passwords_; |
182 password_manager::metrics_util::UIDisplayDisposition display_disposition_; | 183 password_manager::metrics_util::UIDisplayDisposition display_disposition_; |
183 password_manager::metrics_util::UIDismissalReason dismissal_reason_; | 184 password_manager::metrics_util::UIDismissalReason dismissal_reason_; |
184 | 185 |
185 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleModel); | 186 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleModel); |
186 }; | 187 }; |
187 | 188 |
188 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ | 189 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ |
OLD | NEW |