| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 139 |
| 140 // State setter. | 140 // State setter. |
| 141 void set_state(password_manager::ui::State state) { state_ = state; } | 141 void set_state(password_manager::ui::State state) { state_ = state; } |
| 142 #endif | 142 #endif |
| 143 | 143 |
| 144 // Upper limits on the size of the username and password fields. | 144 // Upper limits on the size of the username and password fields. |
| 145 static int UsernameFieldWidth(); | 145 static int UsernameFieldWidth(); |
| 146 static int PasswordFieldWidth(); | 146 static int PasswordFieldWidth(); |
| 147 | 147 |
| 148 private: | 148 private: |
| 149 // Returns the title for the PENDING_PASSWORD_STATE. |
| 150 base::string16 PendingStateTitleBasedOnSavePasswordPref() const; |
| 149 // URL of the page from where this bubble was triggered. | 151 // URL of the page from where this bubble was triggered. |
| 150 GURL origin_; | 152 GURL origin_; |
| 151 password_manager::ui::State state_; | 153 password_manager::ui::State state_; |
| 152 base::string16 title_; | 154 base::string16 title_; |
| 153 autofill::PasswordForm pending_password_; | 155 autofill::PasswordForm pending_password_; |
| 154 ScopedVector<const autofill::PasswordForm> local_credentials_; | 156 ScopedVector<const autofill::PasswordForm> local_credentials_; |
| 155 ScopedVector<const autofill::PasswordForm> federated_credentials_; | 157 ScopedVector<const autofill::PasswordForm> federated_credentials_; |
| 156 base::string16 manage_link_; | 158 base::string16 manage_link_; |
| 157 base::string16 save_confirmation_text_; | 159 base::string16 save_confirmation_text_; |
| 158 gfx::Range save_confirmation_link_range_; | 160 gfx::Range save_confirmation_link_range_; |
| 159 // If true upon destruction, the user has confirmed that she never wants to | 161 // If true upon destruction, the user has confirmed that she never wants to |
| 160 // save passwords for a particular site. | 162 // save passwords for a particular site. |
| 161 bool never_save_passwords_; | 163 bool never_save_passwords_; |
| 162 password_manager::metrics_util::UIDisplayDisposition display_disposition_; | 164 password_manager::metrics_util::UIDisplayDisposition display_disposition_; |
| 163 password_manager::metrics_util::UIDismissalReason dismissal_reason_; | 165 password_manager::metrics_util::UIDismissalReason dismissal_reason_; |
| 164 | 166 |
| 165 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleModel); | 167 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleModel); |
| 166 }; | 168 }; |
| 167 | 169 |
| 168 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ | 170 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ |
| OLD | NEW |