Index: chrome/browser/ui/passwords/password_manager_presenter.h |
diff --git a/chrome/browser/ui/passwords/password_manager_presenter.h b/chrome/browser/ui/passwords/password_manager_presenter.h |
index 0096cdf25eb16d730d1b4ca4c0c4fa0272d23dc7..a3e0e5e44fd430622f23fe66bebf9daadec4a988 100644 |
--- a/chrome/browser/ui/passwords/password_manager_presenter.h |
+++ b/chrome/browser/ui/passwords/password_manager_presenter.h |
@@ -16,6 +16,7 @@ |
#include "components/password_manager/core/browser/password_store.h" |
#include "components/password_manager/core/browser/password_store_consumer.h" |
#include "components/prefs/pref_member.h" |
+#include "ui/shell_dialogs/select_file_dialog.h" |
namespace autofill { |
struct PasswordForm; |
@@ -47,6 +48,9 @@ class PasswordManagerPresenter |
// Gets the password entry at |index|. |
const autofill::PasswordForm* GetPassword(size_t index); |
+ // Gets all password entries. |
+ std::vector<scoped_ptr<autofill::PasswordForm>> GetAllPasswords(); |
+ |
// Gets the password exception entry at |index|. |
const autofill::PasswordForm* GetPasswordException(size_t index); |
@@ -62,16 +66,23 @@ class PasswordManagerPresenter |
// |index| The index of the entry. |
void RequestShowPassword(size_t index); |
+ // Returns true if the user is authenticated. |
+ virtual bool IsUserAuthenticated(); |
+ |
private: |
friend class PasswordManagerPresenterTest; |
- // Returns the password store associated with the currently active profile. |
- password_manager::PasswordStore* GetPasswordStore(); |
+ // Returns true if the user needs to be authenticated before a plaintext |
+ // password is revealed or exported. |
+ bool IsAuthenticationRequired(); |
// Sets the password and exception list of the UI view. |
void SetPasswordList(); |
void SetPasswordExceptionList(); |
+ // Returns the password store associated with the currently active profile. |
+ password_manager::PasswordStore* GetPasswordStore(); |
+ |
// A short class to mediate requests to the password store. |
class ListPopulater : public password_manager::PasswordStoreConsumer { |
public: |