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 66c68462967c25cc4689f18f2bad21fa34f7e568..df96a34aea68db319e34414fa2fcf9b9e9639633 100644 |
--- a/chrome/browser/ui/passwords/password_manager_presenter.h |
+++ b/chrome/browser/ui/passwords/password_manager_presenter.h |
@@ -46,6 +46,20 @@ class PasswordManagerPresenter |
// Gets the password exception entry at |index|. |
const autofill::PasswordForm* GetPasswordException(size_t index); |
+ // Checks if |origin| is valid for adding a new password entry. |
+ static bool CheckOriginValidityForAdding(const GURL& origin); |
Dan Beam
2014/09/11 05:17:58
nit: move static method right under ctor
jaekyeom
2014/09/12 10:35:58
Done.
|
+ |
+ // Adds a new password entry with |origin|, |username_value|, and |
+ // |password_value|. |origin| should have been validated by |
Dan Beam
2014/09/11 05:17:58
nit: 1 \s between sentences
jaekyeom
2014/09/12 10:35:58
Done.
|
+ // CheckOriginValidityForAdding, and |password_value| should be non-empty. |
+ void AddPassword(const GURL& origin, |
+ const base::string16& username_value, |
+ const base::string16& password_value); |
+ |
+ // Updates the entry at |index| with |password_value|. |password_value| |
+ // should be non-empty. |
+ void UpdatePassword(size_t index, const base::string16& password_value); |
+ |
// Removes the saved password entry at |index|. |
// |index| the entry index to be removed. |
void RemoveSavedPassword(size_t index); |