| 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 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 | 66 |
| 67 // Called by the view code when the auto-signin toast is about to close due to | 67 // Called by the view code when the auto-signin toast is about to close due to |
| 68 // timeout. | 68 // timeout. |
| 69 void OnAutoSignInToastTimeout(); | 69 void OnAutoSignInToastTimeout(); |
| 70 | 70 |
| 71 // Called by the view code to delete or add a password form to the | 71 // Called by the view code to delete or add a password form to the |
| 72 // PasswordStore. | 72 // PasswordStore. |
| 73 void OnPasswordAction(const autofill::PasswordForm& password_form, | 73 void OnPasswordAction(const autofill::PasswordForm& password_form, |
| 74 PasswordAction action); | 74 PasswordAction action); |
| 75 | 75 |
| 76 GURL origin() const { return origin_; } | |
| 77 | |
| 78 password_manager::ui::State state() const { return state_; } | 76 password_manager::ui::State state() const { return state_; } |
| 79 | 77 |
| 80 const base::string16& title() const { return title_; } | 78 const base::string16& title() const { return title_; } |
| 81 const autofill::PasswordForm& pending_password() const { | 79 const autofill::PasswordForm& pending_password() const { |
| 82 return pending_password_; | 80 return pending_password_; |
| 83 } | 81 } |
| 84 // Returns the available credentials which match the current site. | 82 // Returns the available credentials which match the current site. |
| 85 const ScopedVector<const autofill::PasswordForm>& local_credentials() const { | 83 const ScopedVector<const autofill::PasswordForm>& local_credentials() const { |
| 86 return local_credentials_; | 84 return local_credentials_; |
| 87 } | 85 } |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 // Current statistics for the save password bubble; | 148 // Current statistics for the save password bubble; |
| 151 password_manager::InteractionsStats interaction_stats_; | 149 password_manager::InteractionsStats interaction_stats_; |
| 152 | 150 |
| 153 // Used to retrieve the current time, in base::Time units. | 151 // Used to retrieve the current time, in base::Time units. |
| 154 scoped_ptr<base::Clock> clock_; | 152 scoped_ptr<base::Clock> clock_; |
| 155 | 153 |
| 156 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleModel); | 154 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleModel); |
| 157 }; | 155 }; |
| 158 | 156 |
| 159 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ | 157 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ |
| OLD | NEW |