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 2997830ea64f9dfcbe2ecec860f7288019fd8d2d..d17e338179a63d2647b2df9cbdad7c1e96afd1f8 100644 |
--- a/chrome/browser/ui/passwords/password_manager_presenter.h |
+++ b/chrome/browser/ui/passwords/password_manager_presenter.h |
@@ -43,9 +43,15 @@ class PasswordManagerPresenter |
// Gets the password entry at |index|. |
const autofill::PasswordForm* GetPassword(size_t index); |
+ // Gets all password entries. |
+ ScopedVector<autofill::PasswordForm> GetAllPasswords(); |
+ |
// Gets the password exception entry at |index|. |
const autofill::PasswordForm* GetPasswordException(size_t index); |
+ // Returns the password store associated with the currently active profile. |
+ password_manager::PasswordStore* GetPasswordStore(); |
+ |
// Removes the saved password entry at |index|. |
// |index| the entry index to be removed. |
void RemoveSavedPassword(size_t index); |
@@ -58,16 +64,21 @@ class PasswordManagerPresenter |
// |index| The index of the entry. |
void RequestShowPassword(size_t index); |
+ // Request to have all password entries exported. The request will be granted |
+ // based on the outcome of OS-level re-authentication. |
+ // Return true if request is granted. |
+ virtual bool RequestToExportPassword(); |
+ |
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. |
+ // password is revealed or exported. |
bool IsAuthenticationRequired(); |
+ // Returns true if the user is authenticated |
vabr (Chromium)
2015/07/07 12:58:06
nit: Missing a full-stop at the end.
xunlu
2015/07/07 18:42:47
Done.
|
+ bool IsUserAuthenticated(); |
+ |
// Sets the password and exception list of the UI view. |
void SetPasswordList(); |
void SetPasswordExceptionList(); |