Index: components/password_manager/core/browser/password_manager_client.h |
diff --git a/components/password_manager/core/browser/password_manager_client.h b/components/password_manager/core/browser/password_manager_client.h |
index cc072113cf7d2b5ca08c5c7d6c1f1c96b8b6af01..8dd11b6d7b69803aa8b583a8fee6c81c9ca2f13b 100644 |
--- a/components/password_manager/core/browser/password_manager_client.h |
+++ b/components/password_manager/core/browser/password_manager_client.h |
@@ -76,13 +76,14 @@ class PasswordManagerClient { |
// this signal to report statistics. Default implementation is a noop. |
virtual void AutofillResultsComputed(); |
- // Informs the embedder of a password form that can be saved if the user |
- // allows it. The embedder is not required to prompt the user if it decides |
- // that this form doesn't need to be saved. |
- // Returns true if the prompt was indeed displayed. |
- virtual bool PromptUserToSavePassword( |
+ // Informs the embedder of a password form that can be saved or updated in |
+ // password store if the user allows it. The embedder is not required to |
+ // prompt the user if it decides that this form doesn't need to be saved or |
+ // updated. Returns true if the prompt was indeed displayed. |
+ virtual bool PromptUserToSaveOrUpdatePassword( |
scoped_ptr<PasswordFormManager> form_to_save, |
- CredentialSourceType type) = 0; |
+ CredentialSourceType type, |
+ bool update_password) = 0; |
// Informs the embedder of a password forms that the user should choose from. |
// Returns true if the prompt is indeed displayed. If the prompt is not |
@@ -171,6 +172,9 @@ class PasswordManagerClient { |
// Returns the main frame URL. |
virtual const GURL& GetMainFrameURL() const; |
+ // Returns true if the UI for confirmation of update password is enabled. |
+ virtual bool IsUpdatePasswordUIEnabled() const; |
+ |
private: |
DISALLOW_COPY_AND_ASSIGN(PasswordManagerClient); |
}; |