Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Unified Diff: chrome/browser/ui/passwords/password_manager_presenter.h

Issue 1193143003: Enable import/export of passwords into/from Password Manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..84250f63df5260be6f28ec16983660cd7b59f8db 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,14 +64,14 @@ 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.
+ // password is revealed or exported.
bool IsAuthenticationRequired();
// Sets the password and exception list of the UI view.

Powered by Google App Engine
This is Rietveld 408576698