| 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);
|
| +
|
| + // Adds a new password entry with |origin|, |username_value|, and
|
| + // |password_value|. |origin| should have been validated by
|
| + // 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);
|
|
|